pypy pip:尝试在Ubuntu 18.04 LTS上安装加密时出错[重复]

问题描述 投票:-2回答:1

这个问题在这里已有答案:

安装加密时,轮子无法构建并输出以下错误代码:

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 pip pypy
1个回答
0
投票

需要安装Python库开发文件以从源代码编译扩展。你有libpython-dev安装?

apt-get install libpython-dev
© www.soinside.com 2019 - 2024. All rights reserved.