Mar-31-2020, 08:20 AM
Hi!
I'm trying to use numpy with python3 on my Rasspberry Pi, but I'm not able to import the module after I installed it with sudo apt install python3-numpy, see below.
Installing numpy:
pi@raspberrypi:~ $ sudo apt install python3-numpy
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gfortran python-numpy-doc python3-dev python3-nose python3-numpy-dbg
The following NEW packages will be installed:
python3-numpy
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/1,693 kB of archives.
After this operation, 9,492 kB of additional disk space will be used.
Selecting previously unselected package python3-numpy.
(Reading database ... 129861 files and directories currently installed.)
Preparing to unpack .../python3-numpy_1%3a1.12.1-3_armhf.deb ...
Unpacking python3-numpy (1:1.12.1-3) ...
Setting up python3-numpy (1:1.12.1-3) ...
Processing triggers for man-db (2.7.6.1-2) ...
Afterwards I try to import numpy, but it fails:
pi@raspberrypi:~ $ python3
Python 3.6.3 (default, Mar 28 2020, 15:16:40)
[GCC 6.3.0 20170516] 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'
What am I doing wrong? Could you please help me?
Tahnk's in advance,
Johannes
I'm trying to use numpy with python3 on my Rasspberry Pi, but I'm not able to import the module after I installed it with sudo apt install python3-numpy, see below.
Installing numpy:
pi@raspberrypi:~ $ sudo apt install python3-numpy
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gfortran python-numpy-doc python3-dev python3-nose python3-numpy-dbg
The following NEW packages will be installed:
python3-numpy
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/1,693 kB of archives.
After this operation, 9,492 kB of additional disk space will be used.
Selecting previously unselected package python3-numpy.
(Reading database ... 129861 files and directories currently installed.)
Preparing to unpack .../python3-numpy_1%3a1.12.1-3_armhf.deb ...
Unpacking python3-numpy (1:1.12.1-3) ...
Setting up python3-numpy (1:1.12.1-3) ...
Processing triggers for man-db (2.7.6.1-2) ...
Afterwards I try to import numpy, but it fails:
pi@raspberrypi:~ $ python3
Python 3.6.3 (default, Mar 28 2020, 15:16:40)
[GCC 6.3.0 20170516] 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'
What am I doing wrong? Could you please help me?
Tahnk's in advance,
Johannes