我正在尝试安装mpi4py,并已使用位于以下位置的pip按照安装说明进行安装:http://mpi4py.scipy.org/docs/usrman/install.html#using-pip-or-easy-install
我在MacOS10.11.6上运行了一个带有Python2.7.10的virtualenv,并使用自制软件安装了mpich3。
这是我尝试运行测试时的错误:
Lorens-MBP:mpi4py-mpi4py-b9fccf29258a lorensheets$ ../bin/python test/runtests.py
Traceback (most recent call last):
File "test/runtests.py", line 257, in <module>
sys.exit(main())
File "test/runtests.py", line 244, in main
package = import_package(options, pkgname)
File "test/runtests.py", line 109, in import_package
import mpi4py.MPI
ImportError: dlopen(/Users/lorensheets/Desktop/fresh/virtual/lib/python2.7/site-packages/mpi4py/MPI.so, 2): Library not loaded: /
Users/lorensheets/opt/usr/local/lib/libmpi.20.dylib
Referenced from: /Users/lorensheets/Desktop/fresh/virtual/lib/python2.7/site-packages/mpi4py/MPI.so
Reason: image not found发布于 2019-04-15 15:50:15
尝试安装openmpi而不是mpich3
https://stackoverflow.com/questions/46674330
复制相似问题