Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing numpy using pip freezing

I need to install Numpy version 1.17.1, but every time it just freezes. I have now tried multiple times and I have been waiting over 25 min seeing the same screen. installation image Is this a known issue or am I facing an issue with installing?

The OS that I'm using is Ubuntu on my raspberry pi 3.

like image 240
wes Avatar asked Jun 25 '26 02:06

wes


1 Answers

The long delay is because numpy is being compiled on your Raspberry Pi. To see what is happening under the hood, you can run pip3 with --verbose.

$ pip3 install --verbose numpy==1.17.1

This will give you a better understanding of the problem you are seeing.

To solve that, I would recommend adding https://www.piwheels.org as an extra index for packages so that you can obtain pre-compiled wheels on your Raspberry Pi, saving you a lot of time.

In order to add an extra index globally on your system, all you need to do is edit (or create) a file /etc/pip.conf with the following contents:

[global]
extra-index-url=https://www.piwheels.org/simple

After that, you should see something like:

$ pip3 install numpy==1.17.1
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting numpy==1.17.1
  Downloading https://www.piwheels.org/simple/numpy/numpy-1.17.1-cp37-cp37m-linux_armv7l.whl (10.5MB)
     |████████████████████████████████| 10.5MB 7.1MB/s 
Installing collected packages: numpy
Successfully installed numpy-1.17.1

Note: tested on a Raspberry Pi 4.

like image 153
LeandroN. Avatar answered Jun 28 '26 01:06

LeandroN.