arjunc12
arjunc12

Reputation: 181

PATH points to wrong version of pip

I have the anaconda distribution of python installed on my machine. Before installing anaconda, i had pip installed. Right now, my system uses the previous version of pip rather than the anaconda version. In particular

arjuns-mbp:~ Arjun$ which pip
/usr/local/bin/pip

arjuns-mbp:~ Arjun$ which easy_install
/Users/Arjun/anaconda/bin/easy_install

arjuns-mbp:~ Arjun$ which python
/Users/Arjun/anaconda/bin/python

The result is that if i call a pip install, it won't add it to my anaconda version of python. So far i haven't had an issue simply using easy_install to add packages to anaconda, but it would be nice to know what causes this discrepancy and how to fix it

EDIT

i tried using conda install pip, it doesn't work. When I do conda list pip showed up before and after a conda install

Upvotes: 1

Views: 1765

Answers (2)

Travis Oliphant
Travis Oliphant

Reputation: 1765

pip should already come with Anaconda automatically. How did you install Anaconda? No matter, though, you can just conda install pip to make sure you have a version of pip that is tied to the Anaconda distribution.

From there you can create environments as much as you like to install whatever new trial-run software tools using conda create -n env_name python pip

Upvotes: 0

asmeurer
asmeurer

Reputation: 91680

You probably need to conda install pip.

Upvotes: 2

Related Questions