按照官网的教程,安装 libxml2-dev libxslt1-dev 这两个库之后,一直提示是/usr/bin/ld: cannot find -lz 需要安装zlib1g-dev这个库
所以安装lxml顺序为
sudo apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev
sudo pip install lxml
安装Mysql-python 时遇到 EnvironmentError: mysql_config not found
解决办法: 安装libmysqld-dev
sudo apt-get install libmysqld-dev
sudo pip install MySQL-python