windows pycharm环境配置:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
清华源使用帮助:
https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
anaconda conda 切换为清华源
# 命令行中直接使用以下命令:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/fastai/
conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
# 搜索时显示通道地址
conda config --set show_channel_urls yes
清华源设为默认:
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
Linux和Mac下生成的配置文件路径:
~/.condarc
参考链接:
https://my.oschina.net/k8king/blog/3070752