Compiling from source, only need python3 libraries

make install

will copy your cv2.so to the resp. site-packages folder

i’d add -DBUILD_SHARED_LIBS=OFF to the cmake flags to achieve a statically linked python module. (else you need to keep all other opencv_xxx.so’s around, and have to run ldconfig on your (custom!) install folder

just show us