Could not find Python (missing: PYTHON_LIBRARY)错误解决

问题及现象:

通过CMake生成QGIS的VS 2019的解决方案。本人用CMake 3.23.0版本在本人笔记本能生成VS的解决方案,但在台式机始终报:Could not find Python (missing: PYTHON_LIBRARY)错误。找了半天没找出原因,后来发现台式机CMake 是3.15.0版本,卸载CMake 3.15.0,重新装CMake 3.23.0版本,问题解决。但这从原理上怎么解释得通呢?

你可能感兴趣的:(杂七杂八,Python)