Problems with installing Anaconda+scrapy

Source: Internet
Author: User
Tags bz2
1. Download anaconda, use the Tsinghua Mirror https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/installation all the way next
The first tick: whether to add anaconda to the environment variable the second tick: whether to set Anaconda with Python 3.6 for the system's default Python version 2.Anaconda installation succeeds, we need to modify its package management image as a domestic source. You can always execute the following two lines of code in CMD. Conda config--add channels Https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config--set URLs Yes 3. Installation Scrapy was originally installed directly with the command Conda install scrapy but the following error
C:\windows\system32>conda Install scrapy fetching package metadata .....
Condahttperror:http none None for URL An HTTP error occurred when trying to retrieve the this URL. HTTP errors are often intermittent, and a simple retry'll get to you on your way.
Connectionerror (Maxretryerror (' Httpsconnectionpool host=\ ' repo.continuum.io\ ', P ort=443): Max retries exceeded with URL:/pkgs/free/win-64/repodata.json.bz2 (Ca used by Readtimeouterror ("Httpsconnectionpool host=\" Repo.continuum.io \ ', port=4: Read timed out. (read timeout=9.15) ",)"), then use named Easy_install scrapy installation succeeded, but the import scrapy appears when testing in Spyder Modulenotfounderror:no Module named ' Twisted Error started Baidu, installation twisted http://bbs.csdn.net/topics/392091328 The post said some incompatible issues, Look at your own scrapy there's really no twisted. Then follow the conda install twisted==16.6.0 command to get the same error as above and start looking for the wrong reason on the internet, and find a workaround http:// blog.csdn.net/qq_27576655/article/details/70667046 Although he is updated, but the same error, so follow the operation in cmd Input command: Conda--help Find the  .condarc path Open with Notepad, delete the last line of-defaults and execute the conda install twisted==16.6.0 command successfully test import scrapy successfully ... In fact, when the installation of scrapy can be deleted-defaults, and then install it.

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.