📜  pybind11 工具中的 CMake 错误 FindPythonLibsNew.cmake:131(消息):Python 配置失败:- Python 代码示例

📅  最后修改于: 2022-03-11 14:45:47.733000             🧑  作者: Mango

代码示例1
#"This pretty much always finds the wrong interpreter for me,
#  it's just a light helper on top of FindPythonLibs/Interp that 
#  favors Python 3, which were abandoned by CMake because they
#  has so many problems."
#Change python version accordingly:
cmake .. -DPYTHON_EXECUTABLE=/usr/bin/python3.6