gpt4 book ai didi

ubuntu - 没有名为 numpy 的模块

转载 作者:行者123 更新时间:2023-12-04 18:32:18 37 4
gpt4 key购买 nike

我正在使用 ubuntu 14.04 并且刚刚安装了 python 3.4。
在终端上我输入:

sudo apt-get install python-numpy

sudo apt-get install cython

sudo apt-get install python-scipy

sudo apt-get install python-matplotlib

当我试图在空闲时运行某些东西时,它显示了按摩:

第 1 行,在
将 numpy 导入为 n
ImportError:没有名为“numpy”的模块

我对编程知之甚少,而且我是 linux 新手,但我想我要么根本没有安装 numpy,要么我为不同版本的 python 安装了它。我做错了什么?

谢谢。

最佳答案

你能试一下吗

sudo apt-get install python3-numpy

因为你所做的应该为 python 2.x 安装它

关于ubuntu - 没有名为 numpy 的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27809175/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com