单独一次下载时,在下载后面直接加:
-i https://pypi.tuna.tsinghua.edu.cn/simple
-i http://mirrors.aliyun.com/pypi/simple/
mkdir ~/.pip
vim ~/.pip/pip.conf
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com
conda:
conda config --add channels http://mirrors.aliyun.com/pypi/simple/
conda config --set show_channel_urls yes
查看现在的conda源:
conda config --get channels
conda换回默认源:
conda config --remove-key channels
转载链接:关臭臭同学