Pip在Mac OS X / ImportError上不起作用:没有名为utils的模块

时间:2016-04-17 03:00:35

标签: python macos pip

我无法让pip在OS X上工作。我已经尝试了我在这里找到的所有内容,安装,删除,重新安装python等等但没有任何作用。我不断收到以下错误消息:

Traceback (most recent call last):
  File "/usr/local/bin/pip", line 9, in <module>
    load_entry_point('pip==8.1.1', '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 2394, in load_entry_point
    return ep.load()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2108, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/Library/Python/2.7/site-packages/pip-8.1.1-py2.7.egg/pip/__init__.py", line 14, in <module>
    from pip.utils import get_installed_distributions, get_prog
ImportError: No module named utils

0 个答案:

没有答案