Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

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

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Perform the compilation and installation.
    python3 setup.py install

    If "error:vt-mpi" or "lmpe" is displayed during the compilation and installation, ignore it.