学习Python爬虫时,须要用到lxml库。在安装时,出现了错误!python
下面是已经解决的过程:学习
1. 安装wheel库spa
1 pip install wheel
2.去 http://www.lfd.uci.edu/~gohlke/pythonlibs/ 下载 对应的lxml库 ,个人是2.7.12版本的(第一个).net
3. 安装本地lxml的.whl包 (your-local-path:下载的.whl包路径)code
pip install your-local-path
完整操做以下:xml
借鉴了CSDN博客http://blog.csdn.net/a953924393/article/details/50924041 blog