1

When I run pip install xxx or easy_install xxx, I met this problem after upgrading Python from 2.6.6 to 2.7.3:

Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

Could someone give me some advice ?

Bach
  • 6,145
  • 7
  • 36
  • 61
changzhi
  • 2,641
  • 9
  • 36
  • 46
  • This might be helpful - http://stackoverflow.com/questions/7446187/no-module-named-pkg-resources – Tom Ron Mar 04 '14 at 10:55

1 Answers1

0

first try to run python26 or python27 to see what happening.

check if setting PYTHONPATH in shell. unset it!

or set it PYTHONPATH=/usr/lib/python2.7:/usr/lib/python2.7/site-packages/

liuyang1
  • 1,575
  • 1
  • 15
  • 23