How Windows Installs Scrapy

Source: Internet
Author: User
Tags install openssl

The first time to write a blog, there is a bad place please understand!

Install Scrapy in Linux a few lines of command is done, Windows is a matter of many!

Without saying much, we go directly to the subject:

1. Download Python. Address https://www.python.org/, you may hesitate to download Python3, or Python2. Without hesitation, download Python directly, because scrapy only supports PYTHON2!!! See

2. Configure the environment variables.

Here you need to add two paths, one for Python and one for scripts, so you can use Package Manager such as Pip,easy_install. Don't forget the semicolon!!!

The command line checks if the configuration was successful:

Try pip install scrapy see if you can succeed, you will be prompted to install the Python C + + compiler, copy the command line prompt address https://www.microsoft.com/en-us/download/details.aspx id=44266, download the installation directly.

3. Install OpenSSL (some may already be installed). Pip Install OpenSSL (note case) to check if the configuration was successful:

Use Quit () or exit () to exit the Python console

4. The installation of Lxml,lxml should be the most difficult to install, Bo Master tried for a long time to succeed, there are several ways to share with you

4.1 Pip Install lxml If you succeed, that's great (the following steps can be skipped, go straight to the fifth step)

4.2 Easy_install lxml has not succeeded, try a third kind!

4.3 download lxml Latest version, currently the latest version is 3.6.0, Poke here https://pypi.python.org/pypi/lxml/3.6.0, unzip put in this directory


Go back to cmd command line try pip install scrapy see if you can succeed, if not, see Fourth method.

4. 4 Install using the wheel method. Address http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

Go to the command line and install the Wheel:pip install wheel, install it and go to the. WHL file directory that you just downloaded, use pip install LXML-3.6.0-CP35-CP35M-WIN32.WHL installation, if the installation succeeds directly into the fifth step!

4.5 installation via EXE, address https://pypi.python.org/pypi/lxml/3.5.0

OK installation is successful! If it's not successful, I can't do it.

5. Install the scrapy. Command line execution pip install scrapy, if prompted to install successfully can be verified at the command line

How Windows Installs 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.