Python ModuleNotFoundError beheben: No module named 'usb' / usb.util
English
Deutsch
Problem:
Beim Ausführen eines Python-Skripts erscheint eine Fehlermeldung wie
traceback.txt
Traceback (most recent call last):
File "./dfuse-tool.py", line 2, in <module>
import dfuse
File "/home/uli/dev/tools/dfuse-tool/dfuse/__init__.py", line 1, in <module>
from dfuse.DfuDevice import DfuDevice
File "/home/uli/dev/tools/dfuse-tool/dfuse/DfuDevice.py", line 1, in <module>
import usb.util
ModuleNotFoundError: No module named 'usb'Lösung
PyUSB muss installiert werden mit
install_pyusb.sh
pip install -U pyusbCheck out similar posts by category:
Electronics, Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow