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?
Add a comment
|
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 – Milliways Oct 27 '19 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 – Sohan Arafat Oct 28 '19 at 4:52
-
1Thanks, using sudo helped, but I'm not able to use the second command (sudo apt install python-numpy) – SkyPlayX Oct 28 '19 at 10:51
-