fatal error: Python.h: No such file or directory

running build

running build_py

copying xattr/__init__.py -> build/lib.linux-x86_64-2.7/xattr

copying xattr/constants.py -> build/lib.linux-x86_64-2.7/xattr

copying xattr/tool.py -> build/lib.linux-x86_64-2.7/xattr

running build_ext

building 'xattr._xattr' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c xattr/_xattr.c -o build/temp.linux-x86_64-2.7/xattr/_xattr.o

xattr/_xattr.c:1:20: fatal error: Python.h: No such file or directory


找了下python环境, 确实没有这玩意,所以就搜索了下,发现是在python-dev包里。

安装新版本的MYSQLDB 也要这玩意.....

Solved by following command:

apt-get install python-dev
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值