When trying to install mpi4py on mac I get the error
ERROR: Failed building wheel for mpi4py
Failed to build mpi4py
ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects
and also
#include <mpi.h>
^~~~~~~
1 error generated.
failure.
removing: _configtest.c _configtest.o
error: Cannot compile MPI programs. Check your configuration!!!
I have seen some answers to this but none of the answers seem to work on mac e.g.
sudo apt-get install lipopenmpi-dev results in sudo: apt-get: command not found
mpi4pyis built on top ofmpi, so you should have one library installed. that being said, make your life easy and use a package manager such ashomebrewor acondavariant.