"""
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

最新文章

  1. Protocol Buffer搭建及示例
  2. SQLite - TRUNCATE TABLE
  3. Linux 文件访问权限
  4. 学习C++的第三天
  5. ES6新特性之模板字符串
  6. ASP.NET 跨域
  7. 自动获取socket链接状态
  8. 服务器部署之 cap deploy:setup
  9. c# 模拟http post 带cookie
  10. Android 所有颜色代码
  11. Cloning Java objects using serialization
  12. 72_leetcode_Construct Binary Tree from Preorder and Inorder Traversal
  13. ASP.NET 运行
  14. loadrunner Analysis :SLA(Service Level Agreement服务水平协议)
  15. SYBASE的select into与insert into使用和区别
  16. 关于vue监听dom与传值问题
  17. react中这些细节你注意过没有?
  18. iOS 跳转到系统指定设置界面
  19. redis 数据统计(用自增id防止同一秒并发过大没统计成功)
  20. html:meta

热门文章

  1. 新浪微博登陆以及发送微博(附python源码)
  2. JavaScript开发工具简明历史
  3. angular ng-repeat 动态获取的dom片段 显示
  4. 纯CSS+HTML实现checkbox的思路与实例
  5. Human Motion Analysis with Wearable Inertial Sensors——阅读3
  6. cordov vue项目中调用手机原生api
  7. Visual Stuido Online:如何禁止多人同时签出同一文件
  8. Orchard详解--第八篇 拓展模块及引用的预处理
  9. Oracle EBS R12 GL_IMPORT_REFERENCES 映射
  10. c/c++ 标准库 map set 大锅炖