How to update Anaconda version

First open the Anaconda prompt command.

Enter the following command and press Enter

conda update -n base -c defaults conda

 update conda command

conda update conda

update anaconda command

conda update anaconda

Update anaconda package command

conda update --all

update anaconda navigator

conda update anaconda navigator

This blogger wrote all about anaconda commands, you can take a look if you want

Summary of common commands of Anaconda and pip: simple and easy to understand - AhtelekB - 博客园 (cnblogs.com)

There will be something like this

 Appear Proceed([y]/n)? Just enter y

Enter in the cmd command to view the conda version.

conda --version

If the local download is too slow, you can find the .condarc file in this computer user and add a new download address.

If the file is not found, you can run the following code in the anaconda promp command to generate the .condarc file.

conda config --set show_channel_urls yes 

 Modify the file after generating it

Open it with Notepad and add the download address of Tsinghua's mirror station.

Copy the following content in Notepad: You can change the download address.

channels:
  - defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

After adding Tsinghua’s mirror website here, updating Anaconda may still cause the following problem: condaHTTPError

  • Enter the modification settings on the command line conda config --set ssl_verify false, or /.condarcadd a line at the end of the file ssl_verify: false(you can modify it if there is one)
  • Change https to http

Cause Analysis

The https protocol has more authentication and encryption stages such as SSL and TLS than the http protocol. There may be problems in the process of SSL authentication with Tsinghuayuan, so it is necessary to turn off SSL authentication or use the http protocol instead. But the use of SSL verification is helpful to ensure the reliability of the transmission process.

View the anaconda virtual environment:

conda info --envs

View the anaconda package installation list

conda list

uninstall package

conda uninstall packag_name --fore

 update python

conda update python

remove unused packages

conda clean -p

Reference article: Tsinghua source connection failure reasons and solutions CondaHTTPError SSLError_exception: httpsconnectionpool(host='mirrors.tuna._kxqt233's blog-CSDN blog

Guess you like

Origin blog.csdn.net/qq_61370104/article/details/130583179