In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to modify the domestic mirror source in Anaconda. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Anaconda modifies the domestic image source to generate the configuration file through the conda config command. Here, we use the image of Tsinghua: the first step is to enter the following two commands on the CMD command line: conda config-- add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config-- set show_channel_urls yes.
Second, open the directory C:\ Users and the configuration file .condarc will be generated.
Open it as notepad, the content is as follows: channels:-https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/-defaultsshow_channel_urls: true
The third step is to modify the configuration file, delete the-defaults in the above configuration file .condarc, and then save the final version file as follows: channels:-https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/show_channel_urls: true step 4, check whether it takes effect, and view the current configuration information through the command conda info. The content is as follows, that is, after the modification, pay attention to the content of the channel URLs field. > conda info
Active environment: base active env location: C:\ Users\ 27342\ Anaconda3 shell level: 1 user config file: C:\ Users\ 27342\ .condarcpopulated config files: C:\ Users\ 27342\ .condarc conda version: 4.5.11 conda-build version: 3.15.1 python version: 3.7.0.final.0 base environment: C:\ Users\ 27342\ Anaconda3 (writable) channel URLs: https:// Mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch package cache: C:\ Users\ 27342\ Anaconda3\ pkgs C:\ Users\ 27342\ AppData\ Local\ conda\ conda\ pkgs envs directories: C:\ Users\ 27342\ Anaconda3\ envs C:\ Users\ 27342\ AppData\ Local\ conda\ conda\ envs C:\ Users\ 27342\ .conda\ envs platform: win-64 user-agent: conda/4.5.11 requests/2.19.1 CPython/3.7.0 Windows/10 Windows/10.0.18362 administrator: False netrc file: None offline mode: False step 5, Test it, Run. Conda clean-I clears the index cache to ensure that the index provided by the mirror station is used. Conda create-n myenv numpy downloads the numpy package.
On how to modify the domestic mirror source in Anaconda to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.