--- a/cmake/OpenCVDetectPython.cmake +++ a/cmake/OpenCVDetectPython.cmake @@ -186,7 +186,7 @@ if(NOT ${found}) else() #debian based assumed, install to the dist-packages. set(_packages_path "python${_version_major_minor}/dist-packages") endif() - set(_packages_path "lib/${_packages_path}") + set(_packages_path "lib64/${_packages_path}") elseif(CMAKE_HOST_WIN32) get_filename_component(_path "${_executable}" PATH) file(TO_CMAKE_PATH "${_path}" _path)