【发布时间】:2018-09-12 17:16:53
【问题描述】:
安装加密时,轮子无法构建,pip 输出以下错误代码:
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
但是这些软件包已经安装在我的系统上。所有的开发包都在那里;没有以前建议的软件包,已经回答的问题丢失了
那么问题出在哪里?
【问题讨论】:
-
在 pip "pyconfig.h: No such file or directory" 上建议的副本在 Google 中排名第四。
-
@ivan_pozdeev 已经遵循了这些步骤。因此是新问题。
-
好吧,您需要以某种方式获取
pypy的标头并让编译器看到它们。如何获得pypy(我检查了官方网站上下载的标题)以及如何编译扩展 - which you didn't provide the details for。