我最近在我的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
我该如何解决这个问题?
答案 0 :(得分:1)
尝试运行conda install -f pip
。