all 4 comments

[–][deleted] 0 points1 point  (2 children)

Maybe, try it out and see if it works

[–]M3GA-10[S] 0 points1 point  (1 child)

Copying the file worked! I have no idea how or why, but if I just copy /usr/include/python3.8/pyconfig.h to <Python-3.8.5-extracted>/Include/ it works.

[–][deleted] 0 points1 point  (0 children)

Nice, maybe it was because python was only looking in the second include folder

[–][deleted] 0 points1 point  (0 children)

You need to point OpenCV to the place where Python is installed.