Create a new environment to solve conda slow slow conda install error problem

 

Creating new environments conda create conda install or use when installing the package, most of the students should have experienced slow installation (mainly because the download speed is too slow, or download to half the problem of error)

The online solution is usually the conda into a domestic Tsinghua source or sources USTC

But in my system Miniconda4.8.3 (python3.7.4) + win10, this does not work, change the Tsinghua source, the problem still exists after USTC source.

Such problems did not occur before 2019, it may be due to speculation that the 19-year conda suspend the relevant authorization, although they were later restored.

One method to resolve this problem is to update the command conda

conda conda update

After conda update command, the source set conda Tsinghua source (Refer https://mirror.tuna.tsinghua.edu.cn/help/anaconda/)

channels:
  - defaults
show_channel_urls: true
channel_alias: https://mirrors.tuna.tsinghua.edu.cn/anaconda
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
  - 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
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

Then create the environment

conda create -n py38 python = 3.8

Command is successful, a little faster, the problem is solved.

Guess you like

Origin www.cnblogs.com/templeminer/p/12572452.html