I have installed
Python 2.7, but when I try to generate the
OpenCV 2.3.1 project Makefiles using
CMake 2.8, I get the following message. I am running Windows 7 x86 and using Visual Studio 10.
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
I have followed the guide provided at this link.
Yes, this also worked for me.
Check advanced, then manually set the values for the three variables.
In my case:
PYTHON_EXECUTABLE = .../python.exe PYTHON_INCLUDE_DIR = .../include PYTHON_LIBRARY = .../python26.lib
Tested with PythonPortable on Windows. (so, no installation required)