Reputation:
I have Linux mint 18.x installed. When i ran pip initially it installed packages to python 2.7.x. I also installed pip3 and it handled python3 package install. But after I followed some instructions for other reasons and did apt-get update / upgrade, pip now installs to python3 and not 2.7.x. How can I reset please as I use both. Is it a matter of rerunning:
sudo python pip.py?
Upvotes: 0
Views: 1791
Reputation: 2688
Check for the version of your python that you want to install your modules in:
python -V
Then you can use the following:
pip3.6 install <package> # This is for python 3.6
Example for python 2.7
pip2.7 install <package>
or for those of you using macports make sure your version match using.
port select --list pip
then change to the same python version you are using.
sudo port select --set pip pip27
Upvotes: 1