Skip to content

Why is python2 needed? #800

@beew

Description

@beew

Hi, I am compiling opencv-python from source. While it compiled I am getting these warning

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

  PYTHON_EXECUTABLE=/home/beew/opt/python310/bin/python

  PYTHON_VERSION_STRING=3.10.9

  Consider providing the 'PYTHON2_EXECUTABLE' variable via CMake command line
  or environment variables

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

Python 2.7 has deprecated for a while, why is it still looking for python2?

OS is Ubuntu 22.04. opencv-python from git branch origin/4.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions