I'm installing NumPy on a Raspberry Pi 3 using pip. When I type in pip install numpy
into the SSH bash terminal, pip starts collecting and downloading NumPy. But when it runs the setup.py file, it just freezes and terminates the SSH connection. Everytime I try to install NumPy, this happens. I'm using Python 2. What should I do?
2 Answers
run sudo apt install python-numpy
(or preferably sudo apt install python3-numpy
because python2 is terminally ill).
You can not just install anything without a root permission . You must execute this command under root permission. Or you can use use
sudo pip install numpy
or
sudo apt install python-numpy
-
This is untrue. You CAN install Python packages without sudo - although they are only available to the user Oct 27, 2019 at 21:38
-
If you are talking about installing by compiling and using standalone python binary , yes that can work too. But I have never done that Oct 28, 2019 at 4:52
-
1Thanks, using sudo helped, but I'm not able to use the second command (sudo apt install python-numpy)– SkyPlayXOct 28, 2019 at 10:51
-