cmake: Unable to find Python interpreter, required for builds and testing.

问题描述

当使用 cmake 编译文件时,出现错误:

– Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
CMake Error at CMakeLists.txt:376 (message):
Unable to find Python interpreter, required for builds and testing.
Please install Python or specify the PYTHON_EXECUTABLE CMake variable.
– Configuring incomplete, errors occurred!

解决方法

安装 python

apt install python2.7

你可能感兴趣的:(Linux(Ubuntu),编译,Python,python,开发语言)