DistributionNotFound error after upgrading pip

后端 未结 8 1878
借酒劲吻你
借酒劲吻你 2020-12-31 12:59

In reading about virtualenv here I realized I didn\'t have pip 1.3+, so I ran pip install --upgrade pip and now when I run pip --version i get the

8条回答
  •  無奈伤痛
    2020-12-31 13:06

    I happened to get to a similar state after upgrading from OS X Lion to Mountain Lion today.

    The other proposed solutions either do not work, or replace the Apple version of Python with the brew version, which I'm not sure is what saclark asked for.

    What I did to get it fixed is install distribute manually, thus getting easy_install back to work, and then install pip with it.

    The commands are:

    $ curl -O http://pypi.python.org/packages/source/d/distribute/distribute-0.6.45.tar.gz
    $ tar -xzvf distribute-0.6.45.tar.gz
    $ cd distribute-0.6.45
    $ sudo python setup.py install
    $ sudo easy_install pip
    

    If the link does not work, you can alway find newer versions of distribute here.

提交回复
热议问题