添加解释器时,我在 pycharm 上获得了拒绝许可。它曾经工作过,突然坏了,不知道发生了什么变化。它在 pycharm 2.7.3 上坏了,我升级到 3.0 但仍然坏了。添加了 interpeted 但它会引发此错误。任何信息都会很有用。我认为安装虚拟环境后它可能会损坏(不确定)
路径没问题,但是包是空的,安装按钮是灰色的。通常我通过终端安装,但无论如何让 ide 完全工作会很好。
更新
哪个python->/usr/bin/python
更新2 我发现有些egg文件有不同的权限。当我将权限更改为 rw rr (644) 时,由于某种原因,它们又回到了 600。
umask -> 0022
drwxr-xr-x 2 root root 4096 02.09.2013 01:06 ./
drwxr-xr-x 53 root root 4096 23.09.2013 21:29 ../
-rw-r--r-- 1 root root 8 02.09.2013 01:06 top_level.txt
-rw-r--r-- 1 root root 1319 02.09.2013 01:06 PKG-INFO
-rw-r--r-- 1 root root 1 02.09.2013 01:06 dependency_links.txt
-rw-r--r-- 1 root root 5792 02.09.2013 01:06 SOURCES.txt
-rw-r--r-- 1 root root 8666 02.09.2013 01:06 installed-files.txt
drwxr-xr-x 4 root root 4096 31.08.2013 22:28 ../
drwxr-xr-x 2 root root 4096 31.08.2013 22:28 ./
-rw------- 1 root root 9 31.08.2013 22:28 top_level.txt
-rw------- 1 root root 563 31.08.2013 22:28 SOURCES.txt
-rw------- 1 root root 3 31.08.2013 22:28 requires.txt
-rw------- 1 root root 425 31.08.2013 22:28 PKG-INFO
-rw------- 1 root root 1 31.08.2013 22:28 not-zip-safe
-rw------- 1 root root 1 31.08.2013 22:28 dependency_links.txt
Traceback (most recent call last):
File "/usr/lib/python3.3/site-packages/pkg_resources.py",
line 2304, in _dep_map return self.__dep_map File "/usr/lib/python3.3/site-packages/pkg_resources.py",
line 2374, in __getattr__ raise AttributeError(attr) AttributeError:
_Distribution__dep_map During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/foobar/Programming/pycharm3/helpers/packaging_tool.py",
line 115, in main do_list() File "/home/foobar/Programming/pycharm3/helpers/packaging_tool.py",
line 47, in do_list requires = ':'.join([str(x) for x in pkg.requires()]) File "/usr/lib/python3.3/site-packages/pkg_resources.py",
line 2323, in requires dm = self._dep_map File "/usr/lib/python3.3/site-packages/pkg_resources.py",
line 2308, in _dep_map for extra,reqs in split_sections(self._get_metadata(name)):
File "/usr/lib/python3.3/site-packages/pkg_resources.py",
line 2750, in split_sections for line in yield_lines(s):
File "/usr/lib/python3.3/site-packages/pkg_resources.py",
line 2009, in yield_lines for ss in strs: File "/usr/lib/python3.3/site-packages/pkg_resources.py",
line 2337, in _get_metadata for line in self.get_metadata_lines(name):
File "/usr/lib/python3.3/site-packages/pkg_resources.py",
line 1325, in get_metadata_lines return yield_lines(self.get_metadata(name))
File "/usr/lib/python3.3/site-packages/pkg_resources.py",
line 1322, in get_metadata return self._get(self._fn(self.egg_info,name)).decode("utf-8")
File "/usr/lib/python3.3/site-packages/pkg_resources.py",
line 1426, in _get stream = open(path, 'rb') PermissionError:
[Errno 13] Permission denied: '/usr/lib/python3.3/site-packages/python_dateutil-2.1-py3.3.egg/EGG-INFO/requires.txt'
bpython 0.12 /usr/lib/python3.3/site-packages/bpython-0.12-py3.3.egg
pygments Pygments 1.6 /usr/lib/python3.3/site-packages/Pygments-1.6-py3.3.egg
OpenGLContext 2.2.0a2 /usr/lib/python3.3/site-packages/OpenGLContext-2.2.0a2-py3.3.egg
Cython 0.19.1 /usr/lib/python3.3/site-packages/Cython-0.19.1-py3.3-linux-x86_64.egg
docutils 0.11 /usr/lib/python3.3/site-packages/docutils-0.11-py3.3.egg
selenium 2.35.0 /usr/lib/python3.3/site-packages/selenium-2.35.0-py3.3.egg
numpy 1.7.1 /usr/lib/python3.3/site-packages/numpy-1.7.1-py3.3-linux-x86_64.egg
matplotlib 1.3.0 /usr/lib/python3.3/site-packages/matplotlib-1.3.0-py3.3-linux-x86_64.egg
python-dateutil:tornado:pyparsing>=1.5.6:nose nose 1.3.0 /usr/lib/python3.3/site-packages/nose-1.3.0-py3.3.egg
pyparsing 2.0.1 /usr/lib/python3.3/site-packages/pyparsing-2.0.1-py3.3.egg tornado 3.1
/usr/lib/python3.3/site-packages/tornado-3.1-py3.3.egg or create new VirtualEnv