[python] 解决pip install download速度过慢问题 更换豆瓣源
2024-08-24 07:49:17
"""
python建立pip.ini.py
2016年4月30日 03:35:11 codegay
""" import os ini="""[global]
index-url = https://pypi.doubanio.com/simple/
[install]
trusted-host=pypi.doubanio.com
"""
pippath=os.environ["USERPROFILE"]+"\\pip\\" if not os.path.exists(pippath):
os.mkdir(pippath) with open(pippath+"pip.ini","w+") as f:
f.write(ini)
运行以下python代码会自动建立pip.ini
最新文章
- Protocol Buffer搭建及示例
- SQLite - TRUNCATE TABLE
- Linux 文件访问权限
- 学习C++的第三天
- ES6新特性之模板字符串
- ASP.NET 跨域
- 自动获取socket链接状态
- 服务器部署之 cap deploy:setup
- c# 模拟http post 带cookie
- Android 所有颜色代码
- Cloning Java objects using serialization
- 72_leetcode_Construct Binary Tree from Preorder and Inorder Traversal
- ASP.NET 运行
- loadrunner Analysis :SLA(Service Level Agreement服务水平协议)
- SYBASE的select into与insert into使用和区别
- 关于vue监听dom与传值问题
- react中这些细节你注意过没有?
- iOS 跳转到系统指定设置界面
- redis 数据统计(用自增id防止同一秒并发过大没统计成功)
- html:meta
热门文章
- 新浪微博登陆以及发送微博(附python源码)
- JavaScript开发工具简明历史
- angular ng-repeat 动态获取的dom片段 显示
- 纯CSS+HTML实现checkbox的思路与实例
- Human Motion Analysis with Wearable Inertial Sensors——阅读3
- cordov vue项目中调用手机原生api
- Visual Stuido Online:如何禁止多人同时签出同一文件
- Orchard详解--第八篇 拓展模块及引用的预处理
- Oracle EBS R12 GL_IMPORT_REFERENCES 映射
- c/c++ 标准库 map set 大锅炖