How to install mpi4py in a separation environment

147 Views Asked by At

I have tried installing mpi4py using pip install mpi4py, but it gives me the error:

mpi.h no such file or directory
could not build wheel for mpi4py, which is required to install pyproject.toml-based projects.

I found that the system does not have libopenmpi-dev, but I cannot install it in a separate environment, due to some network error. How can I install mpi4py regardless?

0

There are 0 best solutions below