我正在尝试将 Cantera 安装为 Ubuntu linux 中的 python 模块。作为参考,我使用了以下说明:安装 Cantera。运行./preconfig
and后make
,我收到以下错误:
fatal error: numarray/arrayobject.h: No such file or directory
根据预配置文件,
# If numpy was installed using the --home option, set this to the
# home directory for numpy. This will be needed for all numpy installations
# that don't put the include files into python's native include directory.
#NUMPY_HOME=${NUMPY_HOME:="$HOME/python_packages"}
我正在使用Enthought Python Distribution的学生版,所以我想也许我需要将最后一行更改为:
NUMPY_HOME=${NUMPY_HOME:="/usr/local/EPD/lib/python2.7/site-packages/"}
但这不起作用。我仍然得到同样的错误。想法?我已经安装了 python-dev 来修复早期的错误,所以不是这样。