2013-04-18 58 views
0

我想安装OpenMDAO,它是一个使用python的开源框架。所以之前我得到它,它需要3包:安装OpenMDAO

  1. Fortran编译器
  2. numpy的
  3. ScyPy

,我做到了安装使用自制:

brew install gfortran 
sudo easy_install-2.6 pip 
sudo pip-2.6 install numpy 
sudo pip-2.6 install scipy 

现在,要安装OpenMDAO,我应该在OpenMDAO文件夹中,并在该级别运行此脚本:

python go-openmdao-dev.py 

但我不断收到此错误:

ERROR: the following prerequisites could not be imported: ['scipy']. 

所以,我是说在OpenMDAO的人,看来我需要用的是python2.6的 - 虽然我不能肯定,所以我的猜测是我安装的所有软件包都是针对python 2.7的,因为它是在python网站上推荐的。

Mac自带的那个不是。所以当我输入以下终端:

python2.6 

它实际上运行该版本。所以在这一点上,我不知道我是否必须在Python 2.6中运行脚本,但如果是这样,我不知道该怎么做。我试着这样做,并没有奏效:

Screenshot of the problem

如果有谁是熟悉环境,或只是与Python本身有任何建议,我会很感激它。

回答

0

我从.dmg下载scipy后出现同样的问题。我卸载,然后从源代码重新安装:http://sourceforge.net/projects/scipy/files/scipy/0.12.0/,然后openmdao安装程序识别scipy。

这可能是有用的(从INSTALL.TXT在SciPy的-0.12.0.tar.gz):

To test SciPy after installation (highly recommended), execute in Python

>>> import scipy
>>> scipy.test()

To run the full test suite use

>>> scipy.test('full')

Please note that you must have version 0.10 or later of the 'nose' test framework installed in order to run the tests. More information about nose is available on the website__.

__ http://somethingaboutorange.com/mrl/projects/nose/

+0

感谢您回复马克, – mauricioSanchez