pyprotect
pyprotect copied to clipboard
Installation Error on Debian (Kali linux)
OS: Debian (last version) Python: 3.8.x and 3.9.x - 64bits
root@milani:~/Desktop/pybind11-2.6.0# cd build && cmake .. && make
-- The CXX compiler identification is GNU 10.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- pybind11 v2.6.0
-- CMake 3.18.2
-- Found PythonInterp: /usr/bin/python3.9 (found version "3.9")
-- Found PythonLibs: python3.9
-- PYTHON 3.9.0
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- pybind11::lto enabled
-- pybind11::thin_lto enabled
-- Setting tests build type to MinSizeRel as none was specified
-- Building tests WITHOUT Eigen, use -DDOWNLOAD_EIGEN on CMake 3.11+ to download
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.56")
-- Found pytest 4.6.11
-- Catch not detected. Interpreter tests will be skipped. Install Catch headers manually or use `cmake -DDOWNLOAD_CATCH=ON` to fetch them automatically.
-- Configuring done
-- Generating done
-- Build files have been written to: /root/Desktop/pybind11-2.6.0/build
Scanning dependencies of target cross_module_gil_utils
[ 2%] Building CXX object tests/CMakeFiles/cross_module_gil_utils.dir/cross_module_gil_utils.cpp.o
In file included from /root/Desktop/pybind11-2.6.0/include/pybind11/pytypes.h:12,
from /root/Desktop/pybind11-2.6.0/include/pybind11/cast.h:13,
from /root/Desktop/pybind11-2.6.0/include/pybind11/attr.h:13,
from /root/Desktop/pybind11-2.6.0/include/pybind11/pybind11.h:45,
from /root/Desktop/pybind11-2.6.0/tests/cross_module_gil_utils.cpp:9:
/root/Desktop/pybind11-2.6.0/include/pybind11/detail/common.h:122:10: fatal error: Python.h: No such file or directory
122 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
make[2]: *** [tests/CMakeFiles/cross_module_gil_utils.dir/build.make:82: tests/CMakeFiles/cross_module_gil_utils.dir/cross_module_gil_utils.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:252: tests/CMakeFiles/cross_module_gil_utils.dir/all] Error 2
make: *** [Makefile:149: all] Error 2