问题描述
当使用 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