Cmake is not able to find Python-libraries

后端 未结 10 1536
太阳男子
太阳男子 2020-12-02 16:53

Getting this error:

sudo: unable to resolve host coderw@ll
-- Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) 
CMake Error at /usr         


        
10条回答
  •  我在风中等你
    2020-12-02 17:29

    I hit the same issue,and discovered the error message gives misleading variable names. Try setting the following (singular instead of plural):

    PYTHON_INCLUDE_DIR=/usr/include/python2.7 
    PYTHON_LIBRARY=/usr/lib/python2.7/config/libpython2.7.so
    

    The (plural) variables you see error messages about are values that the PythonLibs sets up when it is initialised correctly.

提交回复
热议问题