Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the source package directory.
cd /path/to/mpi4py
- Decompress the installation package.
tar xvf 3.1.3.tar.gz mv mpi4py-3.1.3 mpi4py cd mpi4py
- Modify the configuration file.
- Open mpi.cfg.
vim mpi.cfg
- Press i to enter the insert mode and change the path in lines 55 to 61 to the OpenMPI installation path.

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open mpi.cfg.
- Perform the compilation and installation.
python3 setup.py install
If "error:vt-mpi" or "lmpe" is displayed during the compilation and installation, ignore it.
Parent topic: mpi4py 3.1.3 Porting Guide (Kylin V10)