In file included from native/python/pyjp_module.cpp:18:0:
native/python/include/pyjp.h:22:10: fatal error: Python.h: No such file or directory
#include
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
......
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
pip로 konlpy를 설치하다 위와 같은 오류가 발생하면
사용하는 파이썬 버전에 맞는 python-dev를 설치하면 된다.
3.8을 사용하고 있다면,
$ sudo apt-get install python3.8-dev
댓글