【发布时间】:2011-11-17 22:37:05
【问题描述】:
我正在尝试将 Cantera 安装为 Ubuntu linux 中的 python 模块。作为参考,我使用了这些说明:Installing Cantera。运行./preconfig 和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 来修复早期的错误,所以不是这样。
【问题讨论】:
-
为 Ubuntu 安装相关软件包可能比尝试使用 EPD 更容易。或者您可以尝试询问 EPD 用户列表以检查您是否找到了正确的路径。
-
如果我同时安装了 EPD 和 Ubuntu 发行版 numpy,ipython 将使用 EPD 版本还是 python 发行版?我认为我可以在 ~/.bashrc 中指定它是否正确?
-
原来我已经有了相关的 Ubuntu 包,所以它一定是别的东西。
标签: python linux ubuntu failed-installation cantera