pip加速镜像
更新:HHH   时间:2023-1-7


pip连接官方镜像会特别慢,在此我们使用阿里云的pip镜像

新建目录:/root/.pip

新建文件:/root/.pip/pip.conf

在pip.conf添加如下内容:

    [global]

    timeout = 600

    index.url = http://mirrors.aliyun.com/pypi/simple

    trusted-host = mirrors.aliyun.com


返回网络安全教程...