Check oh-my-tuna
https://github.com/tuna/oh-my-tuna
or
conda mirror setting
conda config --set show_channel_urls yes
create.condarc
fileto ~/.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/
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
to ~/.condarc and open it
add this
envs_dirs: - D:\Miniconda\envs
Debug
for conda:
for pip:
- 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