pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 在cmd中运行以上命令,即可直接设置成功 附上其他国内镜像源: 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirr…
在命令行中输入 pip install pip -U 可以将pip升级到最新 输入以下命令可以将清华源加速设置为默认,以后就不用输入临时的网址了:pip config set global.index-urlhttps://pypi.tuna.tsinghua.edu.cn/simple 如果网络连接较差,升级时报错,可以临时使用该镜像站来升级 pip: pip install -ihttps://pypi.tuna.tsing...
(附:一键设置清华源为默认的方法) 2020-02-01 11:05 −... Breezerf 0 2678 pip安装源 2019-12-20 16:25 −# pip安装源 ## 介绍 ```python """ 1、采用国内源,加速下载模块的速度 2、常用pip源: -- 豆瓣:https://pypi.douban.com/simple -- 阿里:https://mirrors.aliyun.com/pypi/simple...