python numpy已安装,但抛出“ ModuleNotFoundError:没有名为“ numpy”的模块”

时间:2018-09-01 16:29:39

标签: python numpy

我已经在ubuntu上安装了numpy。它在终端上工作正常,但是当我想将其导入到我的工作目录时,它向我显示此错误

    Traceback (most recent call last):
       File "", line 1, in 
    ModuleNotFoundError: No module named 'numpy'

1 个答案:

答案 0 :(得分:0)

尝试一下:

sudo pip install numpy

也是这个

sudo pip install spyder (numpy is included)

sudo easy_install numpy