The source change problem in the process of building a deep learning environment (delete, add, view image source operations) (Linux system)

In the Linux terminal, we often use Conda to install new libraries. Sometimes we also add Conda sources. Over time, when we use Conda install to install new software, the following errors will be reported: (see the solution below Four)

Here I have organized the instructions related to mirror source operations as follows:

1. How to view existing mirror sources:

conda config --show channels

2. How to add mirror sources:

conda config --add channels https://pypi.mirrors.ustc.edu.cn/simple/

3. How to delete the mirror source:

conda config --remove channels  https://pypi.mirrors.ustc.edu.cn/simple/
​conda config --remove channels  https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/​


https://pypi.mirrors.ustc.edu.cn/simple/  is the mirror source of University of Science and Technology of China)

( https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/ is the mirror source of Tsinghua University)

4. How to solve the 404 problem (how to restore the system default image source):

If you encounter the above 404 problem, you can:

Switch back to the default source and continue to use conda. The operation command is:

conda config --remove-key channels

At this point, we execute conda install -xxx again, and the default Conda source will be used to download.

Example:

Guess you like

Origin blog.csdn.net/m0_54111890/article/details/125281477