Python3.6's Pip Checking wrong Python Version
0
votes
1
answer
3834
views
I've recently upgraded to use Python 3.6 on Ubuntu 16.04. Now I have Python 2.7, 3.5, and 3.6 all on the same system. I've had pip (defaults to v2.7), and pip3 (defaults to v3.5), and I then reinstalled pip3 according to this link: https://stackoverflow.com/a/44254088/3123703 .
I'm now on the path to installing all the libraries I'm using for the new Python 3.6. But for some reason, pip3.6 is checking for the libraries in Python 3.5 folders:
$ sudo pip3.6 install numpy
Requirement already satisfied: numpy in /usr/local/lib/python3.5/dist-packages
Also:
$ pip3 --version
pip 9.0.1 from /home//.local/lib/python3.6/site-packages (python 3.6)
$ pip3.6 --version
pip 9.0.1 from /home//.local/lib/python3.6/site-packages (python 3.6)
Is there a way to get pip3.6 to not look in the Python 3.5 folders? Or do I have to completely uninstall Python 3.5 and Python 3.6 and start from scratch?
FYI, I'm not asking for a specific package, as numpy was just an example here.
Asked by nfmcclure
(101 rep)
Jun 20, 2017, 06:06 PM
Last activity: May 23, 2025, 09:02 AM
Last activity: May 23, 2025, 09:02 AM