本文主要是介绍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
这篇关于cmake: Unable to find Python interpreter, required for builds and testing.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!