I installed numpy with pip, version 1.15
pip show numpy
python -m pip show numpy
Name: numpy
Version: 1.15.0
However when I import numpy with python, I get version 1.7.1
>>> import numpy
>>> numpy.version.version
'1.7.1'
Where is this numpy coming from and how can I disable it?
I checked on all folders from the sys.path, and erased folders of numpy version 1.7.1
import sys sys.path ['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/hirsch/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0']
But that did not solve this issue.
>>> which pip
/home/hirsch/.local/bin/pip
>>> which python
/usr/bin/python
which pip?pippoints to some local (user) installation of Python, while what you show comes from system version of Python. Can you runwhich python?