I have been literally struggling to install numpy for python 2.7 and not 3.4 both of which are on my ubuntu. I have tried:
sudo pip2 install numpy
but it says
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages
but when I go to the python shell, and type import numpy, it throws an ImportError
python --version prints `Python 2.7.5`
I have no idea what the problem is even after looking at various answers to other SO questions. Is numpy installed and I'm not able to use it for some reason or isn't it installed? Please help.
which -a pythonoutput?/usr/local/bin/python /usr/bin/pythonpython -m pip install numpy.virtualenv, which allows you to easily control (and reproduce) combinations of interpreters and installed packages./usr/local/bin/python: No module named pip