报错信息:
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mpi4py
Running setup.py clean for mpi4py
Failed to build mpi4py
ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects
尝试过很多方法
方法一:升级pip(未解决)
pip3 install --upgrade pip
方法二:(未解决)
sudo apt update
sudo apt-get install libopenmpi-dev
pip install mpi4py
方法三:(未解决)
apt install mpich
pip install mpi4py
方法四:(解决)
sudo apt install python3-mpi4py
pip install mpi4py