🛠️

19302 工具站

在线工具集合

文章/Python3 pip查看和更换镜像源
Python3 pip查看和更换镜像源

Python3 pip查看和更换镜像源

2021年12月30日4,232 次阅读⏱ 约 1 分钟Python

pip国内的一些镜像

  阿里云 http://mirrors.aliyun.com/pypi/simple/ 
  中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 
  豆瓣(douban) http://pypi.douban.com/simple/ 
  清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 

在windows当前用户的目录下,创建一个 pip文件夹,然后创建一个pip.ini文件,修改文件内容为如下;

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

查看当前源

pip config list

💬评论(0)

💭

暂无评论