Mac下Pyhotn2.7使用pip报错


python 是2.7.5,pip总出错


 Traceback (most recent call last):
  File "/usr/local/bin/pip", line 9, in <module>
    load_entry_point('pip==1.4', 'console_scripts', 'pip')()
  File "/Library/Python/2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 345, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Library/Python/2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 2381, in load_entry_point
    return ep.load()
  File "/Library/Python/2.7/site-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 2087, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named pip

python pip

归宿史莱姆 11 years, 5 months ago

先进入“/Library/Python/2.7/site-packages”路径看看有没有pip相关的文件。如果没有,那么Shell默认的Python没有安装pip,重新下载一下pip安装一下再试试。

我爱奶纹樽 answered 11 years, 5 months ago

Your Answer