当前位置:   article > 正文

cmake: Unable to find Python interpreter, required for builds and testing._could not find pythoninterp (missing: python_execu

could not find pythoninterp (missing: python_executable)

问题描述

当使用 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
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/119790?site
推荐阅读
相关标签
  

闽ICP备14008679号