How To Install python3-pyusb on Fedora 36

In this tutorial we learn how to install python3-pyusb in Fedora 36. python3-pyusb is Python bindings for libusb

Introduction

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

What is python3-pyusb

PyUSB provides easy USB access to python. The module contains classes and methods to support most USB operations.

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

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

sudo dnf -y install python3-pyusb

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

sudo yum -y install python3-pyusb

How To Uninstall python3-pyusb on Fedora 36

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

sudo dnf remove python3-pyusb

python3-pyusb Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/pyusb-1.2.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/pyusb-1.2.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/pyusb-1.2.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/pyusb-1.2.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/pyusb-1.2.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/usb
/usr/lib/python3.10/site-packages/usb/__init__.py
/usr/lib/python3.10/site-packages/usb/__pycache__
/usr/lib/python3.10/site-packages/usb/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/_debug.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/_debug.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/_interop.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/_interop.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/_lookup.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/_lookup.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/_objfinalizer.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/_objfinalizer.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/_version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/_version.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/control.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/control.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/core.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/core.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/legacy.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/legacy.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/libloader.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/libloader.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/util.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/__pycache__/util.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/_debug.py
/usr/lib/python3.10/site-packages/usb/_interop.py
/usr/lib/python3.10/site-packages/usb/_lookup.py
/usr/lib/python3.10/site-packages/usb/_objfinalizer.py
/usr/lib/python3.10/site-packages/usb/_version.py
/usr/lib/python3.10/site-packages/usb/backend
/usr/lib/python3.10/site-packages/usb/backend/__init__.py
/usr/lib/python3.10/site-packages/usb/backend/__pycache__
/usr/lib/python3.10/site-packages/usb/backend/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/backend/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/backend/__pycache__/libusb0.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/backend/__pycache__/libusb0.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/backend/__pycache__/libusb1.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/backend/__pycache__/libusb1.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/backend/__pycache__/openusb.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usb/backend/__pycache__/openusb.cpython-310.pyc
/usr/lib/python3.10/site-packages/usb/backend/libusb0.py
/usr/lib/python3.10/site-packages/usb/backend/libusb1.py
/usr/lib/python3.10/site-packages/usb/backend/openusb.py
/usr/lib/python3.10/site-packages/usb/control.py
/usr/lib/python3.10/site-packages/usb/core.py
/usr/lib/python3.10/site-packages/usb/legacy.py
/usr/lib/python3.10/site-packages/usb/libloader.py
/usr/lib/python3.10/site-packages/usb/util.py
/usr/share/doc/python3-pyusb
/usr/share/doc/python3-pyusb/README.rst
/usr/share/licenses/python3-pyusb
/usr/share/licenses/python3-pyusb/LICENSE

References

Summary

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