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

时间:2018-09-12 17:16:53

标签: python pip pypy

在安装密码时,轮子无法建立,并且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 但是,这些软件包已安装在我的系统上。所有的开发包都在那里。没有以前提出的,已经回答的问题没有建议的包装

那么问题在哪里?

1 个答案:

答案 0 :(得分:0)

需要安装Python库开发文件才能从源代码编译扩展。您是否安装了libpython-dev

apt-get install libpython-dev