Indeed, I have installed python 3.11.3 downloaded from the python.org site.
I installed it on windows 10 correctly. and after installing opencv correctly I can’t import cv2.
Here is the content of my shell during my command executions:
Microsoft Windows [version 10.0.19045.2965]
(c) Microsoft Corporation. All rights reserved.
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)
My real problem lies from here:
The error message after my import cv2 command
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 “”, line 1, in
File “C:\Python311\Lib\site-packages\cv2_init_.py”, line 181, in
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: The specified module could not be found.
I want urgent help