安装mpi4py时出错

时间:2017-10-10 19:17:37

标签: python mpich mpi4py

我尝试安装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

1 个答案:

答案 0 :(得分:-1)

尝试安装openmpi而不是mpich3