I was trying to download mpi4py for fedora and I have encountered with this problem
2 | #include <mpi.h>
error: Cannot compile MPI programs. Check your configuration!!!
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
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 ideas how can I properly load and run mpi4py ?
I strongly recommend using virtualenv or python -m venv with pip as you can very easily end up conflicting with dnf installed libraries, which can in turn break system installed programs, and it is very much not fun to troubleshoot.