我已经通过macports将py27-mpi4py下载到我的OS X Yosemite 10.10系统。这一步似乎有效。 终端输出:
lego:mpi4py-2.0.0 root# port install py27-mpi4py
---> Computing dependencies for py27-mpi4py
---> Cleaning py27-mpi4py
---> Scanning binaries for linking errors
---> No broken files found.
locate mpi4py
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/py-mpi4py
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/py-mpi4py/Portfile
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/py-mpi4py/files
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/py-mpi4py/files/patch-conf-mpidistutils.py.diff
现在当我尝试在python中导入mpi4py时,它无法找到它。这是否意味着安装进展顺利,但我忘了设置python路径?浏览过网上的很多帖子,但我找不到帮助我完成这一步骤的指南。
我是mpi和macports的新手。如果您有我可以尝试的建议,我们非常感激。 祝愿,J。