CMake无法找到PythonLibs(发现版本为“2.7.6”)

时间:2014-07-02 20:53:36

标签: python cmake

我有CMakeLists.txt:

find_package(PythonInterp REQUIRED)
find_package(PythonLibs REQUIRED)

当CMake运行时,它找到PythonInterp但找不到PythonLibs。它会产生错误:

Make Error at c:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES) (found version "2.7.6")

我该如何解决这个问题? 我可以补充一点,Python安装在目录

C:\WinPython-64bit-2.7.6.4\python-2.7.6.amd64

如您所见,它是x64版本。

0 个答案:

没有答案