Mess With Multiple Versions Of Pip To Install Numpy
Solution 1:
If you are not sure which pip
program is associated with your multiple python version, I would recommend you to call pip
from your desired python version. The following command calls pip module from your targeted python program.
python -m pip install numpy
With absolute paths, it gives
/usr/bin/python2.7 -m pip install numpy
/usr/bin/python3 -m pip install numpy
Solution 2:
You don't just have multiple versions of pip installed, you have multiple versions of Python itself.
It looks like numpy is installed in your python 2.7 packages but not in your python 3.5 packages.
If you want to use numpy with python 2.7 then when you run the script you need to tell it to use python 2.7. See this answer.
Alternatively if you want to use numpy with python 3.5 then you need to install it in the correct location.
As a suggestion: Unless you need different versions of python installed for some reason I would recomend starting afresh with anaconda which comes with many scientific packages baked in (including numpy).
Post a Comment for "Mess With Multiple Versions Of Pip To Install Numpy"