I was trying to download mpi4py for fedora and I have encountered with this problem
2 | #include <mpi.h>
| ^~~~~~~
compilation terminated.
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.
Maybe I can add some code to .bashrc so it load each time the terminal starts and then I delete the code when I am done with the project. It’s good to know that it’s expected behaviour.