Error when installing mpi4py

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

    As the error says, there are libraries missing. I solved it by installing libopenmpi-dev package

    sudo apt install libopenmpi-dev
    

    and then installed the mpi4py using pip

    sudo pip install mpi4py
    

提交回复
热议问题