4

Python3.4.0 comes by default on Ubuntu 14.04.01 LTS. We can use it by typing on Terminal `python3.

I want to use Numpy for Python3.4.0. I run import numpy but I had anImportError.So I installed it by runningsudo apt-get install python-numpy. Then I typed on Terminal:python3`. Then import numpy. I got this error:

>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'numpy'
>>> 

Nevertheless, Numpy is now working for Python-2.7:

begueradj@begueradj-Bill:~$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:38) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> 

How can I make Numpy work for Python 3.4.0 ?

7

Open the terminal and type:

sudo apt-get install python3-numpy  

python3-numpy is a fast array facility to the Python 3 language.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy