anaconda conda switch to domestic source, windows and Linux configuration method, add Tsinghua source - [read the article]
- 🥇Copyright : This article was originally created by [Morocracy AI] and was first published on CSDN. Big guys, please check it out
- 🎉Declaration : As one of the bloggers with the most dry goods in the field of AI on the entire network, ❤️ I will live up to my time ❤️
- ❤️ If the article is helpful to you, welcome to click three links
📕 Shuneng makes perfect
What should I do if the download process is very stuck, especially very slow
May I ask why I failed to build a deep learning environment for more than half an hour, but you can build an environment in 10 minutes
To be reasonable, it's like moving bricks. It's been a long time, can you still allow me to pull a few more cars a day?
Eh, in fact, it's all skillful, "Shu Neng Sheng Qiao", where can I find that girl named "Shu"
📗 The purpose of adding the source: to speed up the download
View configuration files
conda config --show
- 1
❤️ Specific operations
💜 under windows
1 Add Tsinghua source
Use the following commands directly on the command line
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
# Set to display the channel address when searching
conda config --set show_channel_urls yes
- 1
- 2
- 3
- 4
- 5
- 6
2 Add China University of Science and Technology
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
conda config --set show_channel_urls yes
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
💜 Under Linux
-
Write the above configuration file in
~/.condarc
middlevim ~/.condarc
channels:
- https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
- https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- defaults
show_channel_urls: true
- 1
- 2
- 3
- 4
- 5
- 6
- Switch back to the default source:
conda config --remove-key channels
- 1
When executing the conda config command
A .condarc file will be created in the current user directory, and you can view the changes in the content of the file before and after the source is replaced
- ❤️ In fact, pip and conda are both good library installation methods, and both methods are used daily
- 💜 When installing libraries, Conda is like big brother, usually you need to ask you if you can install these and replace the original version library; you can enter Yes, it will dare to move; thank you big brother for your hard work;
- 💜 The advantages of Conda are also obvious, and it can often solve the dependency problem of related libraries by the way;
- 💛 Conda and pip can install libraries in the same environment, or even cross-install, to install the same library together;
- 💛 However, occasionally the library version is confused; at this time, you may need to uninstall a specific version library, and whoever installs it is often responsible. You sleep < install >, let me be responsible, and look for brother pits?
- 💙 Conda is the eldest brother, and pip is the younger brother. However, sometimes the eldest brother is tired and cannot find a suitable way. First of all, we can consider changing the source. Actually, in many cases, the younger brother has a lot of resources, pip It can also be topped, and it is very easy
- 👋 So you might want to see:
👋👋 Detailed explanation of the column at the end of the article [Get more kernel cheese together]
- 🎄🎄 If you feel that the article is not enjoyable after reading it, and you want to go further, then you can come to my other columns and read it~
- ❤️Image style conversion - Code environment construction practical tutorial [Follow and read]!
- 💜 Image Repair - Code Environment Construction - Knowledge Summary Practical Tutorial [It is said that it is OK]
- 💙Super -Reconstruction-Code Environment Construction-Knowledge Summary How to make Baiyueguang clearer [Remove Single Artifact]
- 💛 YOLO column, only actual combat, unreasonable Image classification [recommended collection]!
- ❤️Fun to learn deep learning - a variety of interesting practical tutorials [deep learning experience master]!
- 🎉🎉 Well-organized Cuda series Linux installation tutorial [suitable for advanced beginners]
- 💜 ubuntu18 install cuda11.2 graphic tutorial for current user | Configure cuDNN8.1 |
- 💜 Install your own CUDA10.0 for the current user under the Linux server
- 💜 Install Pytorch and Torchvision on cuda10.0 under Linux
- 💜 Can Linux install multiple versions of Cuda | Give me a new server, how will I arrange Cuda
- 💜 Check the version numbers of CUDA and cuDNN
💬 Life is too short, welcome to learn AI with Murray
❤️The blog post on this site is continuously updated ❤️
Weekly update original dry goods, quality and quantity