我正在尝试安装mpi4py并按照安装说明使用pip在这里找到:http://mpi4py.scipy.org/docs/usrman/install.html#using-pip-or-easy-install
我在Mac OS 10.11.6上使用python 2.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
尝试安装openmpi而不是mpich3