Reputation: 5243
I have installed numpy but shell says it is not installed. I have multiple python3 versions installed. I know it has to do something to point to the correct path, but I don't know how to do it. Both python3 and pip3 points python 3.6. I don't understand what the problem could be?
These may be helpful:
$ where python3
/home/subtleseeker/miniconda3/bin/python3
/usr/bin/python3
/usr/bin/python3
$ whereis python3
python3: /usr/bin/python3.6m
/usr/bin/python3.6-config
/usr/bin/python3
/usr/bin/python3.6m-config
/usr/bin/python3.6
/usr/lib/x86_64-linux-gnu/python3.6
/usr/lib/python3.7
/usr/lib/python3
/usr/lib/python3.6
/etc/python3
/etc/python3.6
/usr/local/bin/python3.4m-config
/usr/local/bin/python3.4
/usr/local/bin/python3.4m
/usr/local/lib/python3.4
/usr/local/lib/python3.6
/usr/include/python3.6m
/usr/include/python3.6
/usr/share/python3
/home/subtleseeker/miniconda3/bin/python3.6m
/home/subtleseeker/miniconda3/bin/python3.6-config
/home/subtleseeker/miniconda3/bin/python3
/home/subtleseeker/miniconda3/bin/python3.6m-
/home/subtleseeker/miniconda3/bin/
/usr/share/man/man1/python3.1.gz
$ pip3 --version
pip 18.0 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)
$ python3 --version
Python 3.6.5 :: Anaconda, Inc.
>>> import sys
>>> print(sys.path)
['', '/home/subtleseeker/miniconda3/lib/python36.zip', '/home/subtleseeker/miniconda3/lib/python3.6', '/home/subtleseeker/miniconda3/lib/python3.6/lib-dynload', '/home/subtleseeker/.local/lib/python3.6/site-packages', '/home/subtleseeker/miniconda3/lib/python3.6/site-packages']
The problem started when I installed miniconda. BTW I already had anaconda installed.
Upvotes: 1
Views: 2618
Reputation: 525
Have you already made sure that numpy is really installed with the python version you are using? You can do this with
$ [path_to_your_used_python_version] -m pip show numpy
If it is not installed, you can install it with
$ [path_to_your_used_python_version] -m pip install numpy
Upvotes: 2