Anaconda 4.3.1 (Python 3.6.0) + PyCharm 171.4249.47, Windows 10 - nothing to show
已回答
Installed Anaconda with PyCharm, changed Interpreter setting to use Anaconda3/python.exe, but cannot see any of the packages:

Tried to create conda environment, but get this error message:
File "C:\Anaconda3\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources__init__.py", line 2087, in _rebuild_mod_path orig_path.sort(key=position_in_sys_path) AttributeError: '_NamespacePath' object has no attribute 'sort'
Google doesn't seem to help, the number of searches is very small.
请先登录再写评论。
Please, file an issue about it to PyCharm bug-tracker: https://youtrack.jetbrains.com/issues/PY with your idea.log (Help| Show log). Thank you!
Same here using pip in virtual env. Pip works fine outside of Pycharm in env, just not from the packages window.
PyCharm 2017.1.2
Build #PY-171.4249.47, built on April 26, 2017
Licensed to PIX System / Daniel Dow
You have a perpetual fallback license for this version
Subscription is active until May 5, 2018
JRE: 1.8.0_112-release-736-b21 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.5
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/packaging_tool.py", line 184, in main
retcode = do_install(pkgs)
File "/Applications/PyCharm.app/Contents/helpers/packaging_tool.py", line 106, in do_install
import pip
File "/Users/ddow/venv-python352/lib/python3.5/site-packages/pip/__init__.py", line 26, in <module>
from pip.utils import get_installed_distributions, get_prog
File "/Users/ddow/venv-python352/lib/python3.5/site-packages/pip/utils/__init__.py", line 27, in <module>
from pip._vendor import pkg_resources
File "/Users/ddow/venv-python352/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3018, in <module>
@_call_aside
File "/Users/ddow/venv-python352/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3004, in _call_aside
f(*args, **kwargs)
File "/Users/ddow/venv-python352/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3046, in _initialize_master_working_set
dist.activate(replace=False)
File "/Users/ddow/venv-python352/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2578, in activate
declare_namespace(pkg)
File "/Users/ddow/venv-python352/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2152, in declare_namespace
_handle_ns(packageName, path_item)
File "/Users/ddow/venv-python352/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2092, in _handle_ns
_rebuild_mod_path(path, packageName, module)
File "/Users/ddow/venv-python352/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2121, in _rebuild_mod_path
orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'
Hi Daniel! There's a known issue in setuptools issue tracker: https://github.com/pypa/setuptools/issues/885
Please try to update it and pip. Has it helped?
Hello Paveel. My requirements appear up-to-date and I am still seeing this error:
(venv-python352) pixmaclt61:~ ddow$ pip install --upgrade setuptools
Requirement already up-to-date: setuptools in ./venv-python352/lib/python3.5/site-packages
Requirement already up-to-date: packaging>=16.8 in ./venv-python352/lib/python3.5/site-packages (from setuptools)
Requirement already up-to-date: six>=1.6.0 in ./venv-python352/lib/python3.5/site-packages (from setuptools)
Requirement already up-to-date: appdirs>=1.4.0 in ./venv-python352/lib/python3.5/site-packages (from setuptools)
Requirement already up-to-date: pyparsing in ./venv-python352/lib/python3.5/site-packages (from packaging>=16.8->setuptools)
(venv-python352) pixmaclt61:~ ddow$ pip install --upgrade pip
Requirement already up-to-date: pip in ./venv-python352/lib/python3.5/site-packages
(venv-python352) pixmaclt61:~ ddow$