Python ModuleNotFoundError: No module named 'cv2' auf Windows beheben
English
Deutsch
Problem:
Beim Ausführen von Python-Code auf Windows erscheint eine Fehlermeldung wie die folgende:
cv2_missing.txt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\ukoeh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cv_algorithms__init__.py", line 5, in <module>
from .text import *
File "C:\Users\ukoeh\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cv_algorithms\text.py", line 7, in <module>
import cv2
ModuleNotFoundError: No module named 'cv2'Lösung
Das Paket opencv-python installieren mit
install_opencv.sh
pip install opencv-pythonund erneut versuchen.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow