Python_LIBRARIES in CMAKE notfound

Refresh

December 2018

Views

850 time

2

I installed the Qt5 and python to use it for compile Sigil using CMAKE.

First i had problems with the qt5 but i solved setting the CMAKE_PREFIX_PATH. But the Python seems to have a problem with the pythonlibs and PYTHON_LIBRARIES.

First it reads in black letters:

Looking for python version '3.4' by checking executables: python;python3;python3.4.
Found executable C:/Users/usuario pc/AppData/Local/Programs/Python/Python35-32/python.exe with UNsuitable version 3.5.2
Looking for python version '3.5' by checking executables: python;python3;python3.5.
Found executable C:/Users/usuario pc/AppData/Local/Programs/Python/Python35-32/python.exe with suitable version 3.5.2
Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES) (found suitable version "3.5.2", minimum required is "3.4")

And at the end in red letters it says:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.  
Please set them or make sure they are set and tested correctly in the CMake files:  
    PYTHON_LIBRARY (ADVANCED)
linked by target "Sigil" in directory D:/Archivos de Programa/Sigil-0.9.6/src

Do I have to reinstall python? (which i did and reinitiate the PC). Do i have to change any line?

Thanks.

3 answers

0
sudo apt-get install python3-dev python3-pip python3-tk python3-lxml python3-six

Работал для меня;)

0

При первой установке питона-DEV или python3-DEV, используя

sudo apt-get install python-dev

или же

sudo apt-get install python3-dev

а затем добавить в -D PYTHON_LIBRARIES=<where that libpython<version>m.so is located there>качестве параметра команды CMake

0

У меня была такая же проблема и решить ее путем установки зависимостей питона , как описано в Sigil инструкции линукс сборки : Sudo APT-получить установку python3-DEV python3-пип python3-тк python3-LXML python3-шесть