我正在运行Linux Mint 18.2并安装了python 2.7.12和3.5.2。
pip和pip3曾经工作但最近我收到错误pip3 --version
给出错误
Traceback (most recent call last):
File "/usr/local/bin/pip3", line 9, in <module>
load_entry_point('pip==9.0.1', 'console_scripts', 'pip3')()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/home/norman/.local/lib/python3.5/site-packages/pip/__init__.py", line 28, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/home/norman/.local/lib/python3.5/site-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/home/norman/.local/lib/python3.5/site-packages/pip/download.py", line 47, in <module>
from pip._vendor.cachecontrol import CacheControlAdapter
ImportError: No module named 'pip._vendor.cachecontrol'
我尝试了各种建议,但没有一个有效。我和pip一样 有任何想法