当我尝试使用pipor安装任何东西时pip3,我得到:
pip
pip3
$ sudo pip3 install python3-tk Traceback (most recent call last): File "/usr/bin/pip3", 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 61, 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'
我有一个 Ubuntu 14.10 系统。
我该如何解决这个问题?
这个片段对我来说是一个解决方案(在中Ubuntu 14.04):
Ubuntu 14.04
首先从包管理器中删除包:
# apt-get remove python-pip
然后并排安装最新版本:
# easy_install pip
(感谢@Aufziehvogel,@JunchaoGu)