Error when installing mpi4py

后端 未结 7 1984
死守一世寂寞
死守一世寂寞 2021-02-02 07:19

I\'m trying to install mpi4py using pip install mpi4py, but I\'m getting the following error:

error: Cannot find \'mpi.h\' header. Check your configuration!!!
<         


        
相关标签:
7条回答
  • 2021-02-02 08:23

    If mpi4py cannot find mpi.h, then likely the problem is how you are pointing mpi4py to your existing mpi library.

    $ python setup.py build --mpicc=/where/you/have/mpicc
    

    Now, there there are a few special cases related to OS X. You should consult http://mpi4py.scipy.org/docs/usrman/install.html to see if any apply to you.

    0 讨论(0)
提交回复
热议问题