Scrapy Installation Guide (Windows)

Source: Internet
Author: User

Windows development, inevitably encounter a lot of pits, than the general development is much more difficult. First don't spit slot windows, we look directly at this Scrapy how to install.

First, there is a document, for example I use this:

Http://scrapy-chs.readthedocs.io/zh_CN/0.24/index.html.

Preferably according to their own scrapy version to find documents, Baidu Google a bit.

After the document is found, the documentation has the installation guide, which:

Http://scrapy-chs.readthedocs.io/zh_CN/0.24/intro/install.html#intro-install-platform-notes

Teach you to install Python, put a pip, basically nothing to use, oh ah.

Scrapy to say, there are many dependencies, your Python installed, direct pip install Scrapy, in Windows most error, first look at the most common errors:

If the word Visual C + + appears, this time need to understand why, because one of your Python package needs C + + to compile, the simplest you can directly find this package, download the compiled offline installation. You can also download the installation VC directly, the error will give an address, note vs version.

  1. Lack of libxml2, or lack of lxml

This time, install Lxml:pip installed lxml.

Installation can only say you lucky, not installed very normal, no matter, offline installation: https://pypi.python.org/pypi/lxml/3.6.0 This URL, find their corresponding version, the platform must be correct, otherwise it is not installed, Confirm your own number of Windows, and your Python version, and make sure you are on which version of Python you are installing in multiple versions.

  WHL Package Installation method pip Install + installation package full path. WHL

  2. Missing Pyopenssl

Pip install is still installed, offline:

https://pypi.python.org/pypi/pyOpenSSL/16.1.0

  3. Missing Win32API

Installing pywin32,:https://sourceforge.net/projects/pywin32/files/pywin32/

Download the EXE installation directly.

  EXE package installation method Easy_install + installation package full path. exe

After the above steps are complete, install SCRAPY:PIP installed scrapy. If time-out, indicating that the network does not, recommended to change the network speed fast, it is not possible to set the time-out:

Pip--default-timeout=100 install-u pip

Scrapy Installation Guide (Windows)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.