如何在 Python 中导入 odeint 和排列?
How can I import odeint and arange in Python?
我正在尝试通过以下方式在 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 : Unofficial Windows Binaries for Python Extension Packages
我正在尝试通过以下方式在 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 : Unofficial Windows Binaries for Python Extension Packages