Fix Python – ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there

I have a situation very much like the one at Error “ImportError: DLL load failed: %1 is not a valid Win32 application”, but the answer there isn’t working for me.
My Python code says:
import cv2

But that line throws the error shown in the title of this question.
I have OpenCV installed in C:\lib\opencv on this 64-bit machine. I’m using 64-bit Pyt….

Fix Python – How can I use a DLL file from Python?

What is the easiest way to use a DLL file from within Python?
Specifically, how can this be done without writing any additional wrapper C++ code to expose the functionality to Python?
Native Python functionality is strongly preferred over using a third-party library.