fatal error: Python.h: No such file or directory error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
我正在尝试安装mysqlclient,但收到以下错误消息:
_mysql.c:40:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
有人能帮我解决这个问题吗?
您需要为您的操作系统安装python开发包(包含c头文件)(在基于debian的发行版上,它名为"python x.x-dev",其中"x.x"是python版本)。