这个问题在这里已有答案:
安装加密时,轮子无法构建并输出以下错误代码:
build/temp.linux-x86_64-2.7/_openssl.c:12:12: fatal error: pyconfig.h: No such file or directory
# include <pyconfig.h>
^~~~~~~~~~~~
compilation terminated.
error: command 'cc' failed with exit status 1
此问题的先前实例表明这是Python标头的问题,并建议安装build-essential libssl-dev libffi-dev python-dev
但是这些软件包已经安装在我的系统上。所有的开发包都在那里;没有从先前已经回答的问题建议的软件包丢失
那么问题出在哪里?
需要安装Python库开发文件以从源代码编译扩展。你有libpython-dev
安装?
apt-get install libpython-dev