我正在尝试通过以下方式在python中导入odeint:
from scipy.integrate import odeint
但有一个错误提示:
ImportError:没有名为scipy.integrate的模块
我浏览了一些网站,有一个名为scipy.integrate的模块,我不确定我的代码出了什么问题?
我也试过了
from scipy import arange
它也显示类似的错误消息:
ImportError:没有名为scipy的模块
我正在使用Python 2.7.8。是由于Python版本造成的吗?那我该如何解决呢?
如果我什至无法导入它们,我将无法继续编写代码。
有人可以给点建议吗?
谢谢。
scipy
未安装时会发生这种情况。
从以下位置下载并安装SciPy:Scientific Python
Ubuntu和Debian: sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
软呢帽: sudo yum install numpy scipy python-matplotlib ipython python-pandas sympy python-nose
Windows:Python扩展程序包的非官方Windows二进制文件
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句