国内的pythoner强烈建议使用豆瓣的pypi源

https://pypi.douban.com/simple/

sudo pip install -i https://pypi.douban.com/simple/ scrapy

sudo pip install scrapy -i http://pypi.douban.com/simple;--trusted-host pypi.douban.com

注意后面要有/simple目录。

虽然用easy_install和pip来安装第三方库很方便
它们的原理其实就是从Python的官方源pypi.python.org/pypi 下载到本地,然后解包安装。
不过因为某些原因,访问官方的pypi不稳定,很慢甚至有些还时不时的访问不了。

跟ubuntu的apt和centos的yum有各个镜像源一样,pypi也有。

在国内的强烈推荐豆瓣的源
http://pypi.douban.com/simple/

使用镜像源很简单,用-i指定就行了:
sudo easy_install -i http://pypi.douban.com/simple/ saltTesting
sudo pip install -i http://pypi.douban.com/simple/ saltTesting

Windows:

The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host pypi.douban.com'.

参考链接:https://www.douban.com/note/302711300/

最新文章

  1. 编写简单的ramdisk(有请求队列)
  2. POJ 3714 Raid
  3. runtime(面试)
  4. 编写一个函数func(),将此函数的输入参数(int型)逆序输出显示,如54321 –> 12345,要求使用递归,并且函数体代码不超过8行
  5. HDU 5360 Hiking 登山 (优先队列,排序)
  6. DWZ (JUI) 教程 根据ID刷新 dialog
  7. 【原创】 windows下开发软件推荐
  8. 自动发布工具版本从python2升级成python3后遇到的种种问题(涉及paramiko,Crypto,zipfile等等)
  9. 在java中使用 File.renameTo(File)实现重命名.
  10. [转]Getting (personal) tasks from the user profile.
  11. hash定义
  12. poj2388 高速排序 模板题
  13. zabbix自动截图留档_python版
  14. 一口一口吃掉Hibernate(六)——多对多关联映射
  15. s21day14 python笔记
  16. VS code 代码格式整理的配置
  17. D - Bridge
  18. androidstudio项目如何使用git版本回退
  19. nginx try_files 详解
  20. $trainClassLayer.find('input[name=data-item-checkbox]').eq(index).change();//激活第index+1那个checkbox

热门文章

  1. rest framework错误笔记——AssertionError: Cannot apply DjangoModelPermissionsOrAnonReadOnly on a view that does not set `.queryset` or have a `.get_queryset()` method.
  2. tomcat顺序图摘要
  3. mysql 原理 ~ binlog
  4. k64 datasheet学习笔记1---概述
  5. 算法导论 之 红黑树 - 删除[C语言]【转】
  6. Linux驱动开发必看详解神秘内核(完全转载)
  7. mysql系列九、mysql语句执行过程及运行原理(分组查询和关联查询原理)
  8. oracle 视图 参数
  9. c++ 简单静态链表
  10. Python中的一些小语法