Check oh-my-tuna

https://github.com/tuna/oh-my-tuna

or

https://tuna.moe/oh-my-tuna/

conda mirror setting

  1. conda config --set show_channel_urls yes create .condarc file

  2. to ~/.condarc and open it fill with

    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
      deepmodeling: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/
    
  3. run conda clean -i clean index

pip mirror setting

# tsinghua mirror
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

Alternate conda new created envs default dir

  1. to ~/.condarc and open it

  2. add this

    envs_dirs:
      - D:\Miniconda\envs
    

Debug

for conda:

for pip:

  1. SSLError
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1131)'))': /simple/librosa/

​ solution:

​ proxy software such as Clash, for System proxy, turn to PAC mode instead of HTTP