首页 > 代码库 > pip加速镜像

pip加速镜像

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


本文出自 “激情燃烧的岁月” 博客,请务必保留此出处http://liuzhengwei521.blog.51cto.com/4855442/1903719

pip加速镜像