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