En effet, j'ai installer python 3.11.3 téléchargé sur le site de python.org.
Je l'ai installé sous windows 10 correctement. et après avoir installé opencv correctement je n'arrive pas à impoter cv2.
Voici le contenu de mon shell lors de mes exécutions de commandes:
Code x : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 Microsoft Windows [version 10.0.19045.2965] (c) Microsoft Corporation. Tous droits réservés. C:\Users\ken>python --version Python 3.11.3 C:\Users\ken>pip install numpy Requirement already satisfied: numpy in c:\python311\lib\site-packages (1.24.3) C:\Users\ken>pip install opencv-contrib-python Requirement already satisfied: opencv-contrib-python in c:\python311\lib\site-packages (4.7.0.72) Requirement already satisfied: numpy>=1.21.2 in c:\python311\lib\site-packages (from opencv-contrib-python) (1.24.3)
Mon vrai problème se trouve à partir d'ici:
Le message d'erreur après ma commande import cv2
Code x : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 C:\Users\ken>python Python 3.11.3 (tags/v3.11.3:f3909b8, Apr 4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python311\Lib\site-packages\cv2\__init__.py", line 181, in <module> bootstrap() File "C:\Python311\Lib\site-packages\cv2\__init__.py", line 153, in bootstrap native_module = importlib.import_module("cv2") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ImportError: DLL load failed while importing cv2: Le module spécifié est introuvable. >>>
Je veux une aide urgente
Partager