Pip搞砸了Anaconda Python

时间:2015-08-10 14:06:03

标签: python pip anaconda conda

我最近在我的MacOS 10.10.4中的Anaconda Python安装中遇到了这个错误。

我尝试取消安装,然后重新安装pip,但这不起作用。

Traceback (most recent call last):
  File "/Users/manabchetia/anaconda/bin/pip", line 4, in <module>
    from pip import main
  File "/usr/local/lib/python2.7/site-packages/pip/__init__.py", line 13, in <module>
    from pip.utils import get_installed_distributions, get_prog
  File "/usr/local/lib/python2.7/site-packages/pip/utils/__init__.py", line 23, in <module>
    from pip._vendor import pkg_resources
  File "/usr/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 87, in <module>
    import pip._vendor.packaging.version
ImportError: No module named packaging.version

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

尝试运行conda install -f pip