I have an Amazon EC2 instance running Amazon Linux and a virtual environment with python 3.6.
I can't seem to install Numpy :
(testenv) [ec2-user@ip-xxx-xx-xx-xx venv]$ pip3 install numpy
Collecting numpy
Using cached numpy-1.13.3-cp36-cp36m-manylinux1_x86_64.whl
Installing collected packages: numpy
Successfully installed numpy-1.13.3
(testenv) [ec2-user@ip-xxx-xx-xx-xx venv]$ python
Python 3.6.2 (default, Nov 2 2017, 19:34:31)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
I also did a sudo python36 -m pip install numpy it did not work.
sudo python -m pip install numpy? What you posted should make yourpython36executable work, but it's not clear to me thatpythonrefers to the same one.Requirement already satisfied: numpy in /usr/local/lib64/python2.7/site-packagesIt's installed for previous version of Python but not for 3.6 which is the one I use on this virtual environment...