美文网首页
cmake编译报错:Could NOT find PythonL

cmake编译报错:Could NOT find PythonL

作者: wzNote | 来源:发表于2023-05-05 17:52 被阅读0次

如果不知道具体的位置,可以这么写

-DPYTHON_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")  \
-DPYTHON_LIBRARY=$(python3 -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")

相关文章

网友评论

      本文标题:cmake编译报错:Could NOT find PythonL

      本文链接:https://www.haomeiwen.com/subject/egrqsdtx.html