pip破了,我该怎么解决?

时间:2014-10-06 06:07:34

标签: pip

pip曾经工作,但当我setup.py installed pyttsx失败时,现在就给我这个:

Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 356, in load_entry_point

File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2439, in load_entry_point
)
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2155, in load
for group, lines in data:
File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/__init__.py", line 10, in <module>
from pip.util import get_installed_distributions, get_prog
File  "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site    -packages/pip-1.5.6-py2.7.egg/pip/util.py", line 18, in <module>
from pip._vendor.distlib import version
File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/_vendor/distlib/version.py", line 14, in <module>
  from .compat import string_types
  File   "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site      -packages/pip-1.5.6-py2.7.egg/pip/_vendor/distlib/compat.py", line 31, in <module>
   from urllib2 import (Request, urlopen, URLError, HTTPError,
   ImportError: cannot import name HTTPSHandler
   Vitors-MacBook-Pro:~ vitorpatalano$ cd ~;find . -type f -name "pip"
   ./bin/pip

看起来它指向brew的2.7.8 python版本,但我的路径是:

  export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:~/bin:./bin:$PATH"
  export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH"

   # alias to nw
   alias nw="/Applications/node-webkit.app/Contents/MacOS/node-webkit"

任何帮助将不胜感激。

0 个答案:

没有答案