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?

2 Answers 2

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 Commented 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 Commented Oct 28, 2019 at 4:52
  • 1
    Thanks, using sudo helped, but I'm not able to use the second command (sudo apt install python-numpy) Commented Oct 28, 2019 at 10:51
  • But the hanging problem isn't fixed. Commented Oct 28, 2019 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.