我正在尝试学习如何在python中使用MPI。
当我尝试使用安装了Python 2.7.8 :: Anaconda 2.1.0的mpi4py时,运行helloworld脚本here,我收到以下错误:
--------------------------------------------------------------------------
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!!!
搜索后,我尝试了显示here的手动安装,但没有骰子。
请帮忙!
Anaconda尚未打包mpi4py与Yosemite合作。您可以使用conda命令here.
进行安装