I have a C file that I am trying to integrate Python into, but it returns this error "Python.h: No such file or directory". This is my file:
#define PY_SSIZE_T_CLEAN
#include <Python.h>
int main(int argl, char **argv)
{
return 0;
}
I also tried to use cmake, but it gives me the same error, this is my CMakeLists.txt file:
cmake_minimum_required(VERSION 3.18)
project(Test)
add_executable(main main.c)
find_package(PythonLibs REQUIRED)
include_directories(${Python_INCLUDE_DIRS})
target_link_libraries(main ${Python_LIBRARIES})