Reputation: 429
I am trying to install OpenCV 4.5.5 with CUDA support. I installed the source from their GitHub and the additional OpenCV contrib and built it with CMAKE. I checked BUILD_opencv_python3 when it was done configuring and generating it showed that it had detected python3 and had installed cv2 in site-packages.
But cv2 isn't in the site-packages.
So it doesn't load in python. But it does give an interesting error
What should I do?
I already tried doing a fresh build with CMAKE but it didn't work.
After building OpenCV it generates a PYD file in the lib folder. I don't know if that is helpful or not.
Thanks
Upvotes: 1
Views: 807
Reputation: 15329
You must have missed a step in the process.
cmake-gui
, investigates the environment (various paths, e.g. where python wants packages to go) and prepares information for the buildcmake-gui
, generates the actual build files (VS Solution).sln
in Visual StudioALL_BUILD
targetINSTALL
target, and this installs the files, also the python packageUpvotes: 2