Skip to content

CMake's 'find_host_package(PythonInterp 2.7)' founds wrong Python version: #2386

Closed
@yaoganxingwei

Description

@yaoganxingwei

CMake Warning at cmake/OpenCVDetectPython.cmake:81 (message):
CMake's 'find_host_package(PythonInterp 2.7)' founds wrong Python version:

PYTHON_EXECUTABLE=D:/Program Files/python/python.exe

PYTHON_VERSION_STRING=3.8.1

Consider specify 'PYTHON2_EXECUTABLE' variable via CMake command line or
environment variables

Call Stack (most recent call first):
cmake/OpenCVDetectPython.cmake:271 (find_python)
CMakeLists.txt:595 (include)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions