pip install lxml mysql-python error

问题1:

ERROR: /bin/sh: 1: xslt-config: not found

make sure the development packages of libxml2 and libxslt are installed **

 

参考:

http://stackoverflow.com/questions/5178416/pip-install-lxml-error

http://stackoverflow.com/questions/21489720/installing-pyquery-via-pip

 

解决:

apt-get install libxslt1-dev

 

问题2:

error: Setup script exited with error: command 'gcc' failed with exit status 1

通过安装如下库即可解决:

sudo apt-get install python-dev

你可能感兴趣的:(Install)