修改python包pip下载国内源
2024-10-09 16:32:27
第一种方式-
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
附国内常用镜像源:
阿里云:https://mirrors.aliyun.com/pypi/simple/
中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/
清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
原始 https://pypi.python.org/simple
第二种方式-
在Linux系统中,修改~/.pip/pip.conf文件;在Windows系统中,修改C:\Users\XXX\pip\pip.ini文件。如果没有上述文件,需要手动建立。
在文件中输入以下内容:
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.ustc.edu.cn
最新文章
- 微信小程序 教程及示例
- [ACM_水题] UVA 11292 Dragon of Loowater [勇士斗恶龙 双数组排序 贪心]
- [转]java工程师成神之路
- 第三百三十一天 how can I 坚持
- delphi 读网页线程TReadHtmlThread
- [Mark] KVM 虚拟化基本原理
- 网站优化记录-通过命令预编译Asp.net 网站,成功优化到毫秒级别。
- Java读取ini配置
- 判断客户端使用的是安卓还是苹果,然后加载对应的css文件
- 【翻译】CSS Animations VS the Web Animations API:案例学习
- 用Java进行大数处理(BigInteger)-hdu1042
- 常用git命令总结 初始化git库操作 git 子模块
- MySQL升级教程(CentOS)
- 把Excel选手名单信息导入到评委计分软件Access数据库的步骤
- tomcat8+memcached session共享
- swift4.2 - 距离传感器
- Android学习总结——DrawerLayout 侧滑栏点击事件穿透
- 1025 PAT Ranking[排序][一般]
- Swift之沙盒与数据存储
- java SSH框架
热门文章
- Java泛型详解,通俗易懂只需5分钟
- C++ Templates (1.1 初窥函数模板 A First Look at Function Templates)
- StructuredStreaming(New)
- oracle进行一对多关联查询的时候,获取副表(也就是多条记录的那张表)的最新一条记录进行关联,如何获取多条记录最新一条呢?
- fdisk时WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
- springMVC入门(五)------统一异常处理
- 使用IDEA创建一个SSM工程(非maven)
- Application.LoadLevel
- Bitmap转ImageSource
- HDU多校1003-Divide the Stones(构造)