How To Install python3-py4j on Fedora 36

In this tutorial we learn how to install python3-py4j in Fedora 36. python3-py4j is Py4J enables Python3 programs to dynamically access arbitrary Java objects

Introduction

In this tutorial we learn how to install python3-py4j on Fedora 36.

What is python3-py4j

Py4J enables Python programs running in a Python interpreter to dynamically access Java objects in a Java Virtual Machine. Methods are called as if the Java objects resided in the Python interpreter and Java collections can be accessed through standard Python collection methods. Py4J also enables Java programs to call back Python objects. Py4J is distributed under the BSD license. This package is for usage with Python3 version 3.10 only.

We can use yum or dnf to install python3-py4j on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-py4j.

Install python3-py4j on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-py4j

Install python3-py4j on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-py4j

How To Uninstall python3-py4j on Fedora 36

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

sudo dnf remove python3-py4j

python3-py4j Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/py4j
/usr/lib/python3.10/site-packages/py4j-0.0.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/py4j-0.0.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/py4j-0.0.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/py4j-0.0.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/py4j-0.0.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/py4j/__init__.py
/usr/lib/python3.10/site-packages/py4j/__pycache__
/usr/lib/python3.10/site-packages/py4j/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/clientserver.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/clientserver.cpython-310.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/compat.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/compat.cpython-310.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/finalizer.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/finalizer.cpython-310.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/java_collections.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/java_collections.cpython-310.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/java_gateway.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/java_gateway.cpython-310.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/protocol.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/protocol.cpython-310.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/signals.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/signals.cpython-310.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/py4j/__pycache__/version.cpython-310.pyc
/usr/lib/python3.10/site-packages/py4j/clientserver.py
/usr/lib/python3.10/site-packages/py4j/compat.py
/usr/lib/python3.10/site-packages/py4j/finalizer.py
/usr/lib/python3.10/site-packages/py4j/java_collections.py
/usr/lib/python3.10/site-packages/py4j/java_gateway.py
/usr/lib/python3.10/site-packages/py4j/protocol.py
/usr/lib/python3.10/site-packages/py4j/signals.py
/usr/lib/python3.10/site-packages/py4j/version.py
/usr/share/doc/python3-py4j
/usr/share/doc/python3-py4j/README.rst
/usr/share/licenses/python3-py4j
/usr/share/licenses/python3-py4j/LICENSE.txt

References

Summary

In this tutorial we learn how to install python3-py4j on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).