Traceback (most recent call last):
File "C:\Python27\Scripts\pip-script.py", line 9, in <module>
load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
File "C:\Python27\lib\site-packages\pkg_resources.py", line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "C:\Python27\lib\site-packages\pkg_resources.py", line 2431, in load_entry_point
return ep.load()
File "C:\Python27\lib\site-packages\pkg_resources.py", line 2147, in load
['__name__'])
File "C:\Python27\lib\site-packages\pip\__init__.py", line 11, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "C:\Python27\lib\site-packages\pip\vcs\mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "C:\Python27\lib\site-packages\pip\download.py", line 26, in <module>
from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead
解决方法:
将File "C:\Python27\lib\site-packages\pip\download.py", line 26, in <module>
from requests.compat import IncompleteRead
注释掉,加上from httplib import IncompleteRead
问题解决:
cmd> pip install -U setuptools
Downloading/unpacking setuptools from https://pypi.python.org/packages/3.4/s/setuptools/setuptools-7.0-
py2.py3-none-any.whl#md5=918e7e5ea108507e1ffbbdfccc3496b1
Installing collected packages: setuptools
Found existing installation: setuptools 3.6
Uninstalling setuptools:
Successfully uninstalled setuptools
Successfully installed setuptools
Cleaning up...
from requests.compat import IncompleteRead
注释掉,加上from httplib import IncompleteRead
问题解决:
cmd> pip install -U setuptools
Downloading/unpacking setuptools from https://pypi.python.org/packages/3.4/s/setuptools/setuptools-7.0-
py2.py3-none-any.whl#md5=918e7e5ea108507e1ffbbdfccc3496b1
Installing collected packages: setuptools
Found existing installation: setuptools 3.6
Uninstalling setuptools:
Successfully uninstalled setuptools
Successfully installed setuptools
Cleaning up...
没有评论:
发表评论