Error when installing mpi4py

后端 未结 7 2159
死守一世寂寞
死守一世寂寞 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:18

    you can do this:

    brew install mpich
    

    then

    sudo find / -name mpicc
    

    finally

    env MPICC=/yourpath/mpicc pip3 install mpi4py
    

提交回复
热议问题