What error/warning/output makes you think its a CUDA/cuDNN issue?
This implies you haven’t specified the pythonpaths correctly. I would advise starting again and using the command line as described in this guide
then inspecting the CMake output before building to make sure that python3 will be built and that you have something similar to
– Python 3:
– Interpreter: C:/Users/username/mambaforge/python.exe (ver 3.9.16)
– Libraries: C:/Users/username/mambaforge/libs/python39.lib (ver 3.9.16)
– numpy: C:/Users/username/mambaforge/Lib/site-packages/numpy/core/include (ver 1.23.5)
– install path: C:/Users/username/mambaforge/Lib/site-packages/cv2/python-3.9