Thursday, May 16, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 53103  / 2 Years ago, sat, january 22, 2022, 8:48:24

I need help with installing numpy to Ubuntu 16.04.
after:



$ pip3 install numpy
come up always:
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/numpy'


What to do? How can i install numpy?


More From » software-installation

 Answers
7

See, when you install any software using pip, it defaults to the path: "/usr/local/lib/python3.5/dist-packages/numpy" for installing that software.



Only the root user has access to this area of control (better security) and so, you'll need to the keyword sudo before such commands to enable that software (in this case, pip) to perform it's operations with a root user access level.



So, your command will now become:



sudo pip3 install numpy

[#15538] Sunday, January 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tinchir

Total Points: 300
Total Questions: 116
Total Answers: 119

Location: American Samoa
Member since Sun, Jan 17, 2021
3 Years ago
;