问题:在安装Pillow时提示错误error: command 'gcc' failed with exit status 1
解决:通过安装如下库即可解决:
方法:
sudo apt-get install python-dev
问题2:在安装pyquery时提示错误error: command 'gcc' failed with exit status 1,但安装了python-dev后无用
解决:查看.pip/pip.log文件,发现错误ERROR: /bin/sh: 1: xslt-config: not found
make sure the development packages of libxml2 and libxslt are installed
方法:
sudo apt-get install libxslt-dev