如果在国内安装Python库,强烈推荐使用豆瓣的源
http://pypi.douban.com/simple/

可以这样使用

pip install -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple ipython

比如安装django

pip install -i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com django

每次这样会很麻烦,配置一下 Windows下面可以这样配置

1、在C:\Users\Administrator\AppData\Roaming目录下新建文件夹pip,

2、在pip文件夹下新建pip.ini文件,然后在pip.ini 里输入

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

最新文章

  1. 【Win10开发】关于AutoSuggestBox
  2. Javascript 中的window.parent ,window.top,window.self 详解
  3. angularjs 自带的过滤器
  4. BZOJ1018 [SHOI2008]堵塞的交通traffic
  5. ASP.NET MVC使用过滤器进行权限控制
  6. 命令别名alias设置
  7. 卸载openfire
  8. windows下根据端口号杀死进程
  9. 如何设置修改WPS批注上的用户信息名称
  10. js运算符的优先级
  11. 《Linux命令行与shell脚本编程大全》 第十五章 学习笔记
  12. sql 里的 IF ELSE 语句用法
  13. UML和模式应用5:细化阶段(2)--细化阶段制品之领域模型
  14. Baidu WebFE(FEX)团队开发 的 文件上传插件 WebUploader
  15. 更改 centos 7的源为 阿里源
  16. "Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased."
  17. 在SQL Server中使用CLR调用.NET方法
  18. IIS网页GZIP压缩
  19. Xcode 编译静态库
  20. Arcgis for Js之鼠标经过显示对象名的实现

热门文章

  1. ConnectWeb
  2. qt5实现简单布局
  3. 使用Java封装一个DBUtils类(反射)
  4. HDU_1175_A*
  5. linux入门系列12--磁盘管理之分区、格式化与挂载
  6. 踩坑ThinkPHP5之模型对象返回的数据集如何转为数组
  7. Linux(CentOS 7)修改max open files的值
  8. 浅析Internet上使用的安全协议
  9. 【阿里云IoT+YF3300】15.阿里云物联网小程序构建
  10. idea springboot 使用JRebel热部署