2016-12-06 180 views
0

你好,我有安裝錯誤 關於PIP問題,當我在終端上鍵入的點子,它返回該消息的CentOS 6.8 PIP安裝錯誤HTTPSHandler

Traceback (most recent call last): 
    File "/usr/local/python2.7//bin/pip", line 9, in <module> 
    load_entry_point('pip==8.1.1', 'console_scripts', 'pip')() 
    File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 542, in load_entry_point 
    File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2569, in load_entry_point 
    File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2229, in load 
    File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2235, in resolve 
    File "/usr/local/python2.7/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/__init__.py", line 16, in <module> 
    from pip.vcs import git, mercurial, subversion, bazaar # noqa 
    File "/usr/local/python2.7/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/vcs/subversion.py", line 9, in <module> 
    from pip.index import Link 
    File "/usr/local/python2.7/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/index.py", line 30, in <module> 
    from pip.wheel import Wheel, wheel_ext 
    File "/usr/local/python2.7/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/wheel.py", line 39, in <module> 
    from pip._vendor.distlib.scripts import ScriptMaker 
    File "/usr/local/python2.7/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/distlib/scripts.py", line 14, in <module> 
    from .compat import sysconfig, detect_encoding, ZipFile 
    File "/usr/local/python2.7/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/distlib/compat.py", line 31, in <module> 
    from urllib2 import (Request, urlopen, URLError, HTTPError, 
ImportError: cannot import name HTTPSHandler 

我該怎麼做才能解決這個問題?

回答