How To Install python3-numexpr on Rocky Linux 8

In this tutorial we learn how to install python3-numexpr on Rocky Linux 8. python3-numexpr is Fast numerical array expression evaluator for Python and NumPy

Introduction

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

What is python3-numexpr

The numexpr package evaluates multiple-operator array expressions many times faster than NumPy can. It accepts the expression as a string, analyzes it, rewrites it more efficiently, and compiles it to faster Python code on the fly. It’s the next best thing to writing the expression in C and compiling it with a specialized just-in-time (JIT) compiler, i.e. it does not require a compiler at runtime. This is the version for Python 3.

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

Install python3-numexpr 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-numexpr using dnf by running the following command:

sudo dnf -y install python3-numexpr

Install python3-numexpr 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-numexpr using yum by running the following command:

sudo yum -y install python3-numexpr

How To Uninstall python3-numexpr on Rocky Linux 8

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

sudo dnf remove python3-numexpr

python3-numexpr Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/60
/usr/lib/.build-id/60/bf9d24ec3d711d424d139ac3f67ba7fc726e6e
/usr/lib64/python3.6/site-packages/numexpr
/usr/lib64/python3.6/site-packages/numexpr-2.7.0-py3.6.egg-info
/usr/lib64/python3.6/site-packages/numexpr-2.7.0-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/numexpr-2.7.0-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/numexpr-2.7.0-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/numexpr-2.7.0-py3.6.egg-info/not-zip-safe
/usr/lib64/python3.6/site-packages/numexpr-2.7.0-py3.6.egg-info/requires.txt
/usr/lib64/python3.6/site-packages/numexpr-2.7.0-py3.6.egg-info/top_level.txt
/usr/lib64/python3.6/site-packages/numexpr/__config__.py
/usr/lib64/python3.6/site-packages/numexpr/__init__.py
/usr/lib64/python3.6/site-packages/numexpr/__pycache__
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/__config__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/__config__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/cpuinfo.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/cpuinfo.cpython-36.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/expressions.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/expressions.cpython-36.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/necompiler.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/necompiler.cpython-36.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/utils.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/utils.cpython-36.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/version.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/numexpr/__pycache__/version.cpython-36.pyc
/usr/lib64/python3.6/site-packages/numexpr/cpuinfo.py
/usr/lib64/python3.6/site-packages/numexpr/expressions.py
/usr/lib64/python3.6/site-packages/numexpr/interpreter.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/numexpr/necompiler.py
/usr/lib64/python3.6/site-packages/numexpr/tests
/usr/lib64/python3.6/site-packages/numexpr/tests/__init__.py
/usr/lib64/python3.6/site-packages/numexpr/tests/__pycache__
/usr/lib64/python3.6/site-packages/numexpr/tests/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/numexpr/tests/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/numexpr/tests/__pycache__/test_numexpr.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/numexpr/tests/__pycache__/test_numexpr.cpython-36.pyc
/usr/lib64/python3.6/site-packages/numexpr/tests/test_numexpr.py
/usr/lib64/python3.6/site-packages/numexpr/utils.py
/usr/lib64/python3.6/site-packages/numexpr/version.py
/usr/share/doc/python3-numexpr
/usr/share/doc/python3-numexpr/ANNOUNCE.rst
/usr/share/doc/python3-numexpr/README.rst
/usr/share/doc/python3-numexpr/RELEASE_NOTES.rst
/usr/share/licenses/python3-numexpr
/usr/share/licenses/python3-numexpr/LICENSE.txt

References

Summary

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