Windows installation Scrapy

Source: Internet
Author: User

Scrapy is a reptile developed by Python framework, if you want to learn it, you may be the first step in the installation, you will encounter a lot of problems, because scrapy many modules are based on Linux, you may be installed on the Mac or Linux, there is no problem, However, there may be a variety of problems with Windows installed.

Here I will put together the problems encountered, how to solve.

1. Directly install PIP install Scrapy

2, the installation time scrapy it to rely on a lot of other modules, is generally the other modules installed when the error, because the PIP installed version and the actual operating system need to correspond to the version, such as Twisted

3, in the PIP installation scrapy, he will automatically install other dependent modules, installed to which module error, it will stop the installation, see the figure below, in the installation of twisted error

4, open https://www.lfd.uci.edu/~gohlke/pythonlibs/, find the module to install error, manually download the corresponding operating system installation package, manual installation.

https://www.lfd.uci.edu/~gohlke/pythonlibs/This site is a medical University of the United States website, he has a lot of Python third-party module installation package, open this site, we want to install twisted, Just search twisted, you can see there are several installation packages, according to their own version of Python and the operating system version of the download is good, see the following figure.

6, after the download it is a WHL file, but also directly with PIP installed on the line

1 pip install c:\Users \bjniuhanyang\ Downloads\twisted- 17.9.0-cp35-cp35m-win_amd64.WHL

7. Repeat the first step

Basically install scrapy error, because of a single dependency on the problem caused by the package, this method can solve most problems

Windows installation Scrapy

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.