我收到消息了
You are using pip version 8.0.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
当我尝试通过 pip 安装软件包时。
我按照说明进行操作并升级 pippip install --upgrade pip
。现在我在使用 pip 时遇到错误,即使使用pip --version
检查 pip 的版本。
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
load_entry_point('pip==8.0.2', 'console_scripts', 'pip')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 357, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2393, in load_entry_point
raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'pip') not found
我在网上搜索了一下,发现了一些类似的问题,例如this https://stackoverflow.com/questions/19427486/pip-importerror-entry-point-console-scripts-pip-not-found, this https://stackoverflow.com/questions/22871218/importerror-entry-point-console-scripts-easy-install-not-found and this https://github.com/Homebrew/legacy-homebrew/issues/26900。但这些解决方案都不适合我。
我想我的 Mac 上可能有多个版本的 pip,请问如何清理它并安装最新版本?
谢谢。