Hmm now I get something like that :
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.9.so (found version "3.9.5")
-- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.10")
CMake Error at /usr/lib/cmake/pybind11/FindPythonLibsNew.cmake:96 (message):
Python config failure:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name 'sysconfig' from 'distutils'
(/usr/lib/python3.8/distutils/__init__.py)
Call Stack (most recent call first):
/usr/lib/cmake/pybind11/pybind11Tools.cmake:16 (find_package)
/usr/lib/cmake/pybind11/pybind11Config.cmake:100 (include)
CMakeLists.txt:518 (find_package)
Here it says I should install python-distutils : https://stackoverflow.com/questions/63823964/importerror-cannot-import-name-sysconfig-from-distutils-usr-lib-python3-8 but that doesn’t change anything. My snapcraft.yaml : https://pastebin.com/raw/SRW9FYUc . Please help !