如何在Python中导入odeint和arange?

如何在Python中导入odeint和arange?,python,python-2.7,scipy,python-import,importerror,Python,Python 2.7,Scipy,Python Import,Importerror,我正在尝试通过以下操作在python中导入odeint: from scipy.integrate import odeint 但有一个错误提示: ImportError:没有名为scipy.integrate的模块 我浏览了一些网站,发现有一个名为scipy.integrate的模块,我不确定我的代码出了什么问题 我也试过了 from scipy import arange 这也显示了类似的错误消息: ImportError:没有名为scipy的模块 我正在使用Python 2.7.8。这

我正在尝试通过以下操作在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:

Ubuntu和Debian:
sudo apt get install python numpython python scipy python matplotlib ipython ipython笔记本python pandas python sympy python nose

Fedora:
sudo yum安装numpy scipy python matplotlib ipython python pandas sympy python nose

窗口:


当未安装
scipy
时会发生这种情况

从以下位置下载并安装SciPy:

Ubuntu和Debian:
sudo apt get install python numpython python scipy python matplotlib ipython ipython笔记本python pandas python sympy python nose

Fedora:
sudo yum安装numpy scipy python matplotlib ipython python pandas sympy python nose

窗口:

那么,您是否安装了
scipy
?在同一个口译员/环境中?它不包含在标准库中。那么,您是否安装了
scipy
?在同一个口译员/环境中?它不包括在标准库中。