无法为python 3.6.5安装numpy

时间:2019-03-05 16:12:41

标签: numpy pip python-3.6

我正在尝试使用命令pip3 install numpy安装numpy 但是我收到以下错误:

Collecting numpy
  Using cached https://files.pythonhosted.org/packages/35/d5/4f8410ac303e690144f0a0603c4b8fd3b986feb2749c435f7cdbb288f17e/numpy-1.16.2-cp36-cp36m-manylinux1_x86_64.whl
Installing collected packages: numpy
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/site-packages/numpy-1.16.2.dist-info'
Consider using the `--user` option or check the permissions.

它说permission denied,所以我用sudo来运行它并正确安装。

但是,当我使用任何将numpy用作python3 abc.py的脚本时,出现错误,提示没有名为numpy的模块。它与sudo配合良好

如何安装不使用sudo的numpy?

我正在Ubuntu 18.04上运行python 3.6.5

0 个答案:

没有答案
相关问题