Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgraded Python on Snowleopard Using Homebrew now pip and easy_install don't work

I am new to python, I have changed my path to point to the new python 2.7, but pip and easy_install, and mercurial are still looking at the default installed version 2.6. How do I fix this?

like image 842
Joey Blake Avatar asked Jan 20 '23 01:01

Joey Blake


1 Answers

You need to install pip and setuptools again (which provides the easy_install command) for your new version of Python. pip and setuptools are not globally installed, rather they must be installed specifically for each version of Python on your system.

To install pip:

$ curl -O https://github.com/pypa/pip/raw/master/contrib/get-pip.py
$ python get-pip.py

To install setuptools:

$ curl -O http://peak.telecommunity.com/dist/ez_setup.py
$ python ez_setup.py

… but you should probably be using Distribute (it's a newer version of setuptools):

$ curl -O http://python-distribute.org/distribute_setup.py
$ python distribute_setup.py
like image 166
bradley.ayers Avatar answered Feb 03 '23 08:02

bradley.ayers