查看当前conda配置
conda config --show channels
安装延时操作
pip3 --default-timeout=100 install d2l-0.17.6-py3-none-any.whl
指定镜像源操作
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple d2l-0.17.6-py3-none-any.whl
删除所有源,换回默认
conda config --remove-key channels
增加源:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
豆瓣源
conda config --add channels https://pypi.douban.com/simple
清华源
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 --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud//pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/