我收到了消息
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安装软件包时。
我按照说明使用pip 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,this和this。但是这些解决方案都不适用于我。
我想可能是我的Mac上有多个版本的pip,我该如何清理它并安装最新版本呢?
谢谢。
答案 0 :(得分:7)
手动删除/usr/local/bin/
中的所有pip存储库。 (不确定是否有必要。)
然后按照说明here重新安装pip。
要安装pip,请安全下载get-pip.py。
然后运行以下命令:
python get-pip.py
仅供参考,easy-install pip
不起作用。