我正在尝试安装一个滚轮文件并继续绊倒以下错误:
pi@raspberrypi:~ $ pip-3.2 install DsController-1.0-py3-none-any.whl
Traceback (most recent call last):
File "/usr/bin/pip-3.2", line 9, in <module>
load_entry_point('pip==1.5.6', 'console_scripts', 'pip3')()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 356, in
load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2476, in
load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2190, in load
['__name__'])
File "/usr/lib/python3/dist-packages/pip/__init__.py", line 74, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/lib/python3/dist-packages/pip/vcs/mercurial.py", line 9, in
<module>
from pip.download import path_to_url
File "/usr/lib/python3/dist-packages/pip/download.py", line 25, in <module>
from requests.compat import IncompleteRead
ImportError: cannot import name 'IncompleteRead'
我按照这个帖子中的答案:How do I fix 'ImportError: cannot import name IncompleteRead'?,遗憾的是没有成功。
在Windows下可以毫无问题地安装Wheel。
答案 0 :(得分:1)
在运行pip
时,您没有选择已安装的pip-3.2
版本。
如您所见,version 8.1.2 of download.py不会导入IncompleteRead。但是,version 1.5.6 of download.py会这样做。
您的pip和pip-3.2的副本不是相同的可执行文件(因此只使用pip会起作用),或者您的系统有一个混乱的导入路径,这意味着您正在拾取错误版本的pip包。在后一种情况下,重新启动旧安装或修复导入路径应该有效。