1.在使用pip install下载时,直接在后面指定清华镜像源,如:
pip install scikit-learn --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
加入内容为空格后:
--index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
2.在使用conda install下载时,在后面指定清华镜像源,如:
conda install cd-hit --override-channels \
-c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda \
-c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main \
-c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
加入内容为空格后:
--override-channels \
-c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda \
-c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main \
-c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free