Windows上Python3.5安装Scrapy(lxml)

时间:2022-06-24 03:33:30

本文源自于复制摘抄。

常用网址:

  1. Python 3.5: https://www.python.org/downloads/
  2. Wheel文件:http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

 参考文章:

  1. https://www.webucator.com/blog/2015/03/how-to-install-lxml-for-python-3-on-64-bit-windows/
  2. http://*.com/questions/23944465/installing-lxml-for-python-3-4-on-windows-x-86-32-bit-with-visual-studio-c-2

安装步骤:

  1. 从Python官网下载Python进行安装:

        Windows上Python3.5安装Scrapy(lxml)

  2. 打开http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml去下载lxml的Wheel文件
  3. 打开CMD
  4. 进到lxml下载到的文件夹(或者调用命令的时候传给lxml的全路径)运行如下命令:
    pip3 install lxml-3.5.0-cp35-none-win32.whl
  5. 运行pip3安装Scrapy:
    pip3 install scrapy
  6. 大功告成