pip换源

作者: xpl111 | 来源:发表于2020-04-03 09:56 被阅读0次

新建一个pip全局配置文件夹

打开文件夹进入下放目录
%HOMEPATH%\AppData\Roaming

image.png

右键新建一个pip文件夹


image.png

创建pip.ini文件

进入pip文件夹,新建一个pip.ini文件

image.png

放入下列代码

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

安装pip-review

pip install pip-review

image.png

更新本地的pip

pip-review --local --interactive # 手动选择
pip-review --auto # 自动全部更新
image.png

至此换源成功,体验飞一般的下载速度吧

image.png

相关文章

  • pip换源

    换源的作用是可以加快python下载库的速度。本篇文章采用的方法是作者已经编辑好换源的文本文件,读者只需要下载后将...

  • 换pip源

    vim ~/.pip/pip.conf [global]index-url = http://mirrors.al...

  • pip换源

    pip3 config set global.index-url https://pypi.tuna.tsingh...

  • PIP换源

    pip国内的一些镜像 阿里云 http://mirrors.aliyun.com/pypi/simple/  中国...

  • pip换源

    写在前面:pip换源是一项非常重要的技术,例如Django模块,从官方源下载的话速度经常是20K/S,下几分钟也下...

  • pip换源

    转载:https://blog.csdn.net/chenghuikai/article/details/5525...

  • Pip换源

    Linux Windows 国内源

  • pip换源

    新建一个pip全局配置文件夹 打开文件夹进入下放目录%HOMEPATH%\AppData\Roaming 右键新建...

  • pip换源

    阿里云 http://mirrors.aliyun.com/pypi/simple/[http://mirrors...

  • [转载] Windows conda pip 改源

    Windows下conda换源pip换源https://blog.csdn.net/weixin_44201449...

网友评论

      本文标题:pip换源

      本文链接:https://www.haomeiwen.com/subject/kewcphtx.html