In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to share with you the relevant knowledge points about how to solve CondaHTTPError in Anaconda. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
Preface
2020.3.7 prepare scrapy, create a new environment using anaconda, execute "conda create-n scrapyEnv python=3.6", and the result is "CondaHTTPError: HTTP 000CONNECTION FAILED for url". Here are my steps to solve it.
I. the environment of the computer
Operating system: windows10 64 bit
Anaconda version: conda 4.8.2
II. Solution steps
1. Open Power Shell, execute the "conda config-- remove-key channels" command, and restore the source of Anaconda to the default.
Because I thought there was something wrong with the image of Tsinghua University, I wanted to restore the image to the default, and then re-execute "conda create-n scrapyEnv python=3.6". I found that the problem still occurred, but the prompt changed to "CondaHTTPError: HTTP 000000 CONNECTION FAILED for url". A careful comparison of the previous errors shows that except for the different mirror address, the other descriptions are the same, so I don't think it appears on the mirror address.
2. Restore the Anaconda image to Tsinghua. Execute the following command on Power Shell:
Conda config-- add channels-https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/freeconda config-- add channels-https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
If the command is not executed successfully, execute "conda config-remove-key channels" in Article 1.
3. After returning to the mirror image of Tsinghua University, I once again executed the command to create the environment, but it was still unsuccessful. So try to open the address of the mirror "https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main""
Seems to have found the problem: the mirror address should be added "win-64".
4. Enter "C:UsersAdministrator", open ".condarc", and you will see the following code:
Ssl_verify: trueshow_channel_urls: truechannels:-httpn://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
Change the above code to
Ssl_verify: trueshow_channel_urls: truechannels:-https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
You may also see "- default" below channels: please delete it
5. After the modification, execute "conda create-n scrapyEnv python=3.6" again, and the sound of the waves is still the same!
6. Continue to browse the website, some netizens said, "it must be http, not https!", so he tried to modify it.
Ssl_verify: trueshow_channel_urls: truechannels:-http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
Execute "conda create-n scrapyEnv python=3.6" again, it's a success!
7. According to the content on https://mirror.tuna.tsinghua.edu.cn/help/anaconda/, the final ".condarc" is
Ssl_verify: trueshow_channel_urls: truechannels:-http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/-http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/ above is all the content of this article "how to solve the problem of CondaHTTPError when Anaconda appears". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.