How To Install python3-mpi4py-openmpi on Rocky Linux 8

In this tutorial we learn how to install python3-mpi4py-openmpi on Rocky Linux 8. python3-mpi4py-openmpi is Python 3.6 bindings of MPI, Open MPI version

Introduction

In this tutorial we learn how to install python3-mpi4py-openmpi on Rocky Linux 8.

What is python3-mpi4py-openmpi

This package is constructed on top of the MPI-1/MPI-2 specification and provides an object oriented interface which closely follows MPI-2 C++ bindings. It supports point-to-point (sends, receives) and collective (broadcasts, scatters, gathers) communications of any picklable Python object as well as optimized communications of Python object exposing the single-segment buffer interface (NumPy arrays, built-in bytes/string/array objects). This package contains mpi4py compiled against Open MPI.

We can use yum or dnf to install python3-mpi4py-openmpi on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-mpi4py-openmpi.

Install python3-mpi4py-openmpi on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-mpi4py-openmpi using dnf by running the following command:

sudo dnf -y install python3-mpi4py-openmpi

Install python3-mpi4py-openmpi on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-mpi4py-openmpi using yum by running the following command:

sudo yum -y install python3-mpi4py-openmpi

How To Uninstall python3-mpi4py-openmpi on Rocky Linux 8

To uninstall only the python3-mpi4py-openmpi package we can use the following command:

sudo dnf remove python3-mpi4py-openmpi

python3-mpi4py-openmpi Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/cbe34666758985ad15e7260ee68f4ab7d74913
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/41c02f999885ed1ce3435c3bdf8fefdf66e034
/usr/lib/.build-id/14
/usr/lib/.build-id/14/4c94011e6bdc7e68c6d56f952d96e7d72a4200
/usr/lib/.build-id/19
/usr/lib/.build-id/19/581bc370e5419846107bb237e48e70265fd5e4
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/259384b8d44fb78180d88ba7b4c8f2adf8a01c
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/ac76aab2e26d05061ea4ea3052997c4ad7954b
/usr/lib64/python3.6/site-packages/openmpi/mpi4py
/usr/lib64/python3.6/site-packages/openmpi/mpi4py-3.0.2-py3.6.egg-info
/usr/lib64/python3.6/site-packages/openmpi/mpi4py-3.0.2-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/openmpi/mpi4py-3.0.2-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/openmpi/mpi4py-3.0.2-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/openmpi/mpi4py-3.0.2-py3.6.egg-info/not-zip-safe
/usr/lib64/python3.6/site-packages/openmpi/mpi4py-3.0.2-py3.6.egg-info/top_level.txt
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/MPI.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/MPI.pxd
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/__init__.pxd
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/__init__.py
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/__main__.py
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/__pycache__
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/__pycache__/__main__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/__pycache__/bench.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/__pycache__/bench.cpython-36.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/__pycache__/run.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/__pycache__/run.cpython-36.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/bench.py
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/dl.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__init__.py
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__main__.py
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/__main__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/_base.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/_base.cpython-36.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/_lib.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/_lib.cpython-36.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/aplus.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/aplus.cpython-36.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/pool.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/pool.cpython-36.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/server.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/__pycache__/server.cpython-36.pyc
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/_base.py
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/_lib.py
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/aplus.py
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/pool.py
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/futures/server.py
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/include
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/include/mpi4py
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/include/mpi4py/mpi.pxi
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/include/mpi4py/mpi4py.MPI.h
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/include/mpi4py/mpi4py.MPI_api.h
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/include/mpi4py/mpi4py.h
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/include/mpi4py/mpi4py.i
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/lib-pmpi
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/lib-pmpi/libmpe.so
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/lib-pmpi/libvt-hyb.so
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/lib-pmpi/libvt-mpi.so
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/lib-pmpi/libvt.so
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/libmpi.pxd
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/mpi.cfg
/usr/lib64/python3.6/site-packages/openmpi/mpi4py/run.py

References

Summary

In this tutorial we learn how to install python3-mpi4py-openmpi on Rocky Linux 8 using yum and dnf.