Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip on Mac OS X ImportError: cannot import name walk_packages

I have found several pip problems on stack overflow, but unfortunately it seems like I am experiencing some that I can't find. Particularly I am getting following error message whenever I try to use pip:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pip", line 9, in <module>
load_entry_point('pip==1.3.1', 'console_scripts', 'pip')()
 File "build/bdist.macosx-10.5-intel/egg/pkg_resources.py", line 357, in load_entry_point
"""Yield named metadata resource as list of non-blank non-comment lines
 File "build/bdist.macosx-10.5-intel/egg/pkg_resources.py", line 2394, in load_entry_point
except ValueError:
File "build/bdist.macosx-10.5-intel/egg/pkg_resources.py", line 2108, in load

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/__init__.py", line 10, in <module>
from pip.backwardcompat import u, walk_packages, console_to_str
ImportError: cannot import name walk_packages

Does anyone have any idea what can be wrong? Until now I have tried to reinstall pip as it was recommended here: Python mechanize module not found and I have also tried this Pip using system python osx, but non of them works for me.

Thank you in advance for any advices.

like image 954
ziky90 Avatar asked Jan 13 '23 10:01

ziky90


1 Answers

Somehow solved by command sudo easy_install -U pip

like image 80
ziky90 Avatar answered Jan 17 '23 11:01

ziky90