以下是我编译时的错误:
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find PythonInterp: Found unsuitable version "2.7.16", but
required is at least "3" (found /usr/bin/python)
Call Stack (most recent call first):
/Applications/CMake.app/Contents/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:456 (_FPHSA_FAILURE_MESSAGE)
/Applications/CMake.app/Contents/share/cmake-3.18/Modules/FindPythonInterp.cmake:169 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
3rdparty/pybind11/tools/FindPythonLibsNew.cmake:60 (find_package)
3rdparty/pybind11/tools/pybind11Tools.cmake:16 (find_package)
3rdparty/pybind11/CMakeLists.txt:33 (include)
如何更改 CMake 查找 python 的目录?