pip install Flask -i http://pypi.douban.com/simple

~/.pip/pip.conf

The documentation says the config file for Windows is %HOME%\pip\pip.ini, but pip actually looks for %APPDATA%\pip\pip.ini. It only uses %HOME% if %APPDATA% isn't set.

 

On Windows pip should look for its config file in the 'pip' subdirectory of
the user's Home directory (as returned by os.path.expanduser('~')). The
%APPDATA% directory is hidden by default, so it seems it's not intended for
users to modify it directly.

 

The fix is just a matter of removing one line from locations.py. I'm attaching
a diff.

 

%HOME% = C:\Users\<usrname>, e.g. C:\Users\zpc

 

windows:

"C:\Users\zpc\pip\pip.ini"

[global]
timeout = 60
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com

非官方的python第三方软件包安装地址

http://www.lfd.uci.edu/~gohlke/pythonlibs/

最新文章

  1. G&#233;n&#233;ralement c&#39;est un m&#233;lange qui me devient personnellement
  2. (转)Oracle 获取上周一到周末日期的查询sql语句
  3. java.util.ConcurrentModificationException --map
  4. sql server之数据库语句优化
  5. session和cookie工作原理说明
  6. Linux驱动编程--基于I2C子系统的I2C驱动
  7. crawler
  8. android .9.png ”点九” 图片制作方法
  9. HTTP 504 错误
  10. VS快捷方式小技巧
  11. Toast的替代者Snackbar
  12. php函数参数
  13. AES加密 C++调用Crypto++加密库 样例
  14. 多重if-else语句
  15. linux 安装Brew
  16. Redis五大数据类型以及操作
  17. VMware Workstation Pro14安装
  18. 关于python的基础知识
  19. android触控,先了解MotionEvent
  20. The content of element type "struts" must match "((package|include|bean|constant)*,unknown-handler-s

热门文章

  1. Eclipse 创建 XML 文件---Eclipse教程第12课
  2. Category的真相
  3. 剑指Offer - 九度1504 - 把数组排成最小的数
  4. 《Cracking the Coding Interview》——第8章:面向对象设计——题目8
  5. USACO Section2.3 Controlling Companies 解题报告 【icedream61】
  6. Django笔记 —— 入门简介
  7. android压力测试monkey简单使用
  8. MySQL隐式转换测试
  9. iphone 8 plus 红色特别版,突然自动关机无法启动
  10. Python 3基础教程7-if语句