Opencv refuses to accept libpython binary and fails to produce python module

if you built OpenCV before, make sure to delete the “cmakecache.txt” file in the build directory. it contains things you can set in the cmake GUI, but also infos determined by the “configure” step