1

我正在尝试学习如何将 MPI 与 python 一起使用。

当我尝试使用安装了 Python 2.7.8 :: Anaconda 2.1.0 的 mpi4py 在此处运行 helloworld 脚本时,出现以下错误:

--------------------------------------------------------------------------
Sorry!  You were supposed to get help about:
    opal_init:startup:internal-failure
But I couldn't open the help file:
    /opt/anaconda1anaconda2anaconda3/share/openmpi/help-opal-runtime.txt: No such file or directory.  Sorry!
--------------------------------------------------------------------------
[usrname] [[INVALID],INVALID] ORTE_ERROR_LOG: Error in file runtime/orte_init.c at line 79
[usrname] [[INVALID],INVALID] ORTE_ERROR_LOG: Error in file orterun.c at line 694

我卸载了 conda 打包的 mpi4py 并尝试使用 pip 安装。安装失败并显示以下错误消息:

error: Cannot find 'mpi.h' header. Check your configuration!!!

搜索后,我尝试了此处显示的手动安装,但没有骰子。

请帮忙!

解决了:

Anaconda 尚未打包 mpi4py 以与 Yosemite 一起使用。您可以在此处使用 conda 命令进行安装

4

0 回答 0