python3.4 x86_64-linux-gnu-gcc Error

    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.4
    copying ./rjsmin.py -> build/lib.linux-x86_64-3.4
    running build_ext
    building '_rjsmin' extension
    creating build/temp.linux-x86_64-3.4
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DEXT_MODULE=_rjsmin -UEXT_PACKAGE -I_setup/include -I/usr/include/python3.4m -I/home/edison/solum-dashboard/.tox/py34/include/python3.4m -c rjsmin.c -o build/temp.linux-x86_64-3.4/rjsmin.o
    In file included from rjsmin.c:18:0:
    _setup/include/cext.h:34:20: fatal error: Python.h: No such file or directory
     #include "Python.h"
                        ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

执行如下命令解决问题:

sudo apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev python3-pip

转载于:https://www.cnblogs.com/edisonxiang/p/5364878.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值