#include <stdio.h>
#include <Python.h>
int main(int argc, char * argv[])
{
// initialize the interpreter
Py_Initialize();
// evaluate some code
PyRun_SimpleString("import sys\n");
//ignore line wrap on following line
PyRun_SimpleString("sys.stdout.write('Hello from an embedded Python Script\\n')\n");
// shut down the interpreter
Py_Finalize();
return 0;
}
a.c:2:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
왜 이런식으로 오류 나나요 파이썬 설치했는데
파이썬갤러리로 가셈
열쇠는 영자한테 달라하고
library path에 없던지, 대문자 쓰는거 맞음? C에서 안써봐서 모르겠네.
검색해볼게요 ㄳ
C 헤더랑 라이브러리를 옵션으로 줘야
검색해볼게여 ㄳ