http://mirrors.aliyun.com/pypi/simple/
https://pypi.mirrors.ustc.edu.cn/simple/
http://pypi.douban.com/simple/
https://pypi.tuna.tsinghua.edu.cn/simple/
http://pypi.mirrors.ustc.edu.cn/simple/
如何将下载源改为国内的镜像(以清华大学镜像源为例)
1 | conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 2 | conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ 3 | conda config --set show_channel_urls yes
1 | conda config --remove-key channels
1 | pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
1 | pip install pip -U 2 | pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
1 | pip config set global.index-url https://pypi.org/simple/
1 | pip install 库名 -i https://pypi.tuna.tsinghua.edu.cn/simple
例子:安装tensorflow库:
pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple