[Scrapy] Use Anaconda to build the running environment of scrapy. Officially recommended method ., Anacondascrapy

Source: Internet
Author: User

[Scrapy] Use Anaconda to build the running environment of scrapy. Officially recommended method ., Anacondascrapy

1. Recommended official documents.

2. When most people use the framework, install pywin32 and openssl to build the running environment of scrapy. However, in such an environment, various problems may occur, such as problems with the downloaded version and openssl installation.

In addition, Official Versions later do not support such environment setup methods.

3. annaconda has integrated the environment required for multiple python development. (And you can select to automatically configure environment variables) is very convenient!

4. After knowing this, We will download annaconda from the official website ., Download the corresponding version as needed. After the download is completed, perform the installation in normal steps. (We recommend that you check to automatically import environment variables)

5. After installation, run the annaconda command window.

Then run the conda install scrapy command to install scrapy.

7. Then we will find that something went wrong !!!! Or the installation speed is exceptionally slow.

At this time, you need to change the image path of annaconda.

8. First, go to the cmd command line. Note: It is the cmd command line. It is not an annaconda command line. The two are different.

Run the following command:Conda config -- add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

Here is the image path of Tsinghua.

Run the following command:Conda config -- set show_channel_urls yes

In this case, a file is generated under your user directory C: \ Users \ <your user name>.

File Name:. condarc

Open the file, modify the file to the following and save it:

9. verify whether the installation is successful through the command line:

Run the following command: conda info:

10. Install scrapy.

Use the following command in the command line:

Conda install scrapy

You can install scrapy quickly.

11. When using scrapy, you must run it from the annaconda command line to run it quickly and stably !!

 

Related Article

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.