pip安装时,发生编译错误,提示缺少xxx,应该安装其xxx-dev版本。

比如安装lxml时,需要安装 python-dev libxml2-dev libxslt1-dev zlib1g-dev