py_setup_in_fedora: No module named 'cv2'
following the "Installing OpenCV-Python from Pre-built Binaries" tutorial, module cv2 is not found.
[jan@localhost opencv]$ sudo yum install numpy opencv* Letzte Prüfung auf abgelaufene Metadaten: vor 0:07:19 am Mi 28 Aug 2019 16:43:35 CEST. Das Paket python2-numpy-1:1.16.4-2.fc30.x86_64 ist bereits installiert. Das Paket opencv-3.4.4-10.fc30.x86_64 ist bereits installiert. Das Paket opencv-contrib-3.4.4-10.fc30.x86_64 ist bereits installiert. Das Paket opencv-core-3.4.4-10.fc30.x86_64 ist bereits installiert. Das Paket opencv-devel-3.4.4-10.fc30.x86_64 ist bereits installiert. Das Paket opencv-doc-3.4.4-10.fc30.noarch ist bereits installiert. Das Paket opencv-java-3.4.4-10.fc30.x86_64 ist bereits installiert. Abhängigkeiten sind aufgelöst. Nichts zu tun. Fertig.
[jan@localhost opencv]$ python Python 2.7.16 (default, Apr 30 2019, 15:54:43) [GCC 9.0.1 20190312 (Red Hat 9.0.1-0.10)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import cv2 Traceback (most recent call last): File "
", line 1, in ImportError: No module named cv2 import cv Traceback (most recent call last): File " ", line 1, in ImportError: No module named cv import cv3 Traceback (most recent call last): File " ", line 1, in ImportError: No module named cv3
[jan@localhost opencv]$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information.
import cv2 Traceback (most recent call last): File "
", line 1, in ModuleNotFoundError: No module named 'cv2' import cv3 Traceback (most recent call last): File " ", line 1, in ModuleNotFoundError: No module named 'cv3' import cv Traceback (most recent call last): File " ", line 1, in ModuleNotFoundError: No module named 'cv'