我剛纔具有畫中畫一個問題,當我嘗試安裝類似pip install readline
然後我得到一個錯誤:PIP不工作的Python 2.7
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 549, in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2709, in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2369, in load
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2375, in resolve
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 74, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in <module>
from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead
於是我就cat /usr/local/bin/pip
還告訴我pip==1.5.6
。我試圖找到一個解決方案在線關於此和一個解決方案告訴cd /usr/local/lib/python2.7/site-packages && ls
,但對我來說,我看到該文件夾也是空的。
你在什麼操作系統上? – wpercy
@wilbur Kali Linux –