2

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?

1

run sudo apt install python-numpy (or preferably sudo apt install python3-numpy because python2 is terminally ill).

0

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
4
  • 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
  • 1
    Thanks, 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
  • But the hanging problem isn't fixed. – SkyPlayX Oct 28 '19 at 11:23

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.