Easy_install and Pip doesn't work

前端 未结 6 847
臣服心动
臣服心动 2020-12-15 06:39

Easy_install and Pip doesn\'t work anymore on python 2.7, when I try to do:

sudo easy_install pip

I get:

Traceback (most re         


        
6条回答
  •  不思量自难忘°
    2020-12-15 07:40

    Try

      sudo easy_install Distribute 
    

    and if that exists, but is too old

      sudo easy_install -U Distribute
    

    Looks like either Distribute/setuptools (it's old name) is messed up or Python package settings. If either of these do not help, try removing the full Python 2.7 installation and reinstall everything from the scratch.

    Possible reasons for the mess is that you have used both sudo easy_install / sudo pip and Linux distribution packages to mix and match system-wide installation packages. You should use virtualenv instead if you use pip/easy_install (no sudo needed)

    http://pypi.python.org/pypi/virtualenv

提交回复
热议问题