ImportError: No module named pkg_resources

升级 python 2.6 到 2.7以后 执行 scrapy和 easy_install 会报这个错误
curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | python
重新安装一下 setuptools 即可解决
Traceback (most recent call last):
  File "/var/www/mydir/virtualenvs/dev/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

你可能感兴趣的:(python)