Hi, are you building with windows or linux, OpenCV version 3.4 or 4? If 4 have you included the contrib repo? If windows are you following steps similar to this guide, which uses Visual Studio 2017, CUDA 10.1, and Anaconda?
Does the CMake output of modules to be built (shown below) include python2
-- OpenCV modules:
-- To be built: aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dpm face features2d flann fuzzy hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot python2 python3 quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab world xfeatures2d ximgproc xobjdetect xphoto
and similar output for the following?
-- Python 2:
-- Interpreter: C:/Users/xx/Anaconda2/python.exe (ver 2.7.14)
-- Libraries: C:/Users/xx/Anaconda2/libs/python27.lib (ver 2.7.14)
-- numpy: C:/Users/xx/Anaconda2/lib/site-packages/numpy/core/include (ver 1.13.3)
-- install path: C:/Users/xx/Anaconda2/Lib/site-packages/cv2/python-2.7
If you are building INSTALL in version 4.1.0 then the cv2.pyd file no longer gets copied to the install\python\cv2\python-2.x\ directory and can instead be found in the lib directory, have you checked there?