常用的國內鏡像地址列表如下:
阿里雲 http://mirrors.aliyun.com/pypi/simple
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple
豆瓣(douban) http://pypi.douban.com/simple
清華大學 https://pypi.tuna.tsinghua.edu.cn/simple
中國科學技術大學 http://pypi.mirrors.ustc.edu.cn/simple
終端下,如果也希望能使用國內鏡像,可以修改 ~/.pip/pip.conf (沒有就新建一個), 內容參考下面:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple