当我在CentOS4.9上运行此命令时,会发生这样的错误。我尝试在谷歌搜索但没找到。看起来我是第一个遇到这种问题的人。
#pip install fabric
Traceback (most recent call last):
File "/usr/local/bin/pip", line 8, in <module>
load_entry_point('pip==7.0.1', 'console_scripts', 'pip')()
File "/usr/local/lib/python2.7/site-packages/setuptools-0.6c11- py2.7.egg/pkg_resources.py", line 318, in load_entry_point
File "/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2221, in load_entry_point
File "/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1954, in load
File "/usr/local/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg/pip/__init__.py", line 15, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/local/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg/pip/vcs/subversion.py", line 9, in <module>
from pip.index import Link
File "/usr/local/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg/pip/index.py", line 30, in <module>
from pip.wheel import Wheel, wheel_ext
File "/usr/local/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg/pip/wheel.py", line 34, in <module>
from pip._vendor.distlib.scripts import ScriptMaker
File "/usr/local/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg/pip/_vendor/__init__.py", line 92, in load_module
raise ImportError("No module named '%s'" % (name,))
ImportError: No module named 'pip._vendor.distlib.scripts'
我去了/usr/local/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg/pip/_vendor/distlib。有scripts.py文件。
答案 0 :(得分:1)
根据建议here,请尝试安装SSL支持。
在CentOS上:
yum install openssl openssl-devel
关于Debian:
apt-get -y install libssl-dev
如果libssl-dev
不存在,请尝试:openssl-dev
。