安装lxml包 1,先安装依赖:sudo apt-get install libxml2-dev libxslt-dev python-dev 2,使用pip安装:sudo pip install lxml