I am trying to use numpy on Ubuntu 16.04. I have python 2.7.12 installed. I have tried:
sudo apt install python-numpy sudo apt autoremove dpkg -L python-numpy Here is an excerpt of the output:
/. /usr /usr/lib /usr/lib/python2.7 /usr/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages/numpy-1.11.0.egg-info /usr/lib/python2.7/dist-packages/numpy-1.11.0.egg-info/dependency_links.txt /usr/lib/python2.7/dist-packages/numpy-1.11.0.egg-info/PKG-INFO /usr/lib/python2.7/dist-packages/numpy-1.11.0.egg-info/top_level.txt /usr/lib/python2.7/dist-packages/numpy /usr/lib/python2.7/dist-packages/numpy/lib /usr/lib/python2.7/dist-packages/numpy/lib/shape_base.py However, when I try to run a simple file such as this, I still get the same error.
#!/usr/bin/env python2 import numpy as np a = np.array([1, 2, 3]) python test2.py Traceback (most recent call last): File "test2.py", line 3, in <module> import numpy as np ImportError: No module named numpy Is there anything left that I need to check for? Thanks!