cd /path/to/mpi4py
tar xvf 3.1.3.tar.gz mv mpi4py-3.1.3 mpi4py cd mpi4py
vim mpi.cfg
python3 setup.py install
编译安装过程中出现“error:vt-mpi”、“lmpe”等可忽略。