先配置镜像源
发表于:2024-07-12 |

windows设置镜像源

  • 路径C:\Users\知否

    • 创建pip文件夹下pip.ini
    1
    2
    3
    4
    5
    6
    [global]
    index-url=https://mirrors.aliyun.com/pypi/simple/
    timeout = 6000
    [install]
    trusted-host=mirrors.aliyun.com
    disable-pip-version-check = true

Linux设置镜像源

1
2
3
4
5
6
7
8
9
mkdir ~/.pip
vim ~/.pip/pip.conf

[global]
index-url=https://mirrors.aliyun.com/pypi/simple/
timeout = 6000
[install]
trusted-host=mirrors.aliyun.com
disable-pip-version-check = true

镜像源

1
2
https://pypi.tuna.tsinghua.edu.cn/simple
https://mirrors.aliyun.com/pypi/simple/
上一篇:
windows 10 优化教程
下一篇:
安装Docker-Compose