[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 !!