码迷,mamicode.com
首页 > 其他好文 > 详细

pip install 报错

时间:2017-07-04 20:14:38      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:sid   https   led   simple   success   报错   org   deb   find   

问题描述,在使用pip安装django相关软件包时,提示错误如下:

[root@test4 install]# pip install django==1.6
Downloading/unpacking django==1.6
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement django==1.6
Cleaning up...
No distributions at all found for django==1.6
Storing debug log for failure in /root/.pip/pip.log

解决方案:使用国内镜像

加上参数"-i http://pypi.v2ex.com/simple",即换成国内镜像

[root@test4 install]# pip  install django==1.6 -i http://pypi.v2ex.com/simple
Downloading/unpacking django==1.6
  Real name of requirement django is django
  http://pypi.v2ex.com/simple/django/1.6 uses an insecure transport scheme (http). Consider using https if pypi.v2ex.com has it available
  http://pypi.v2ex.com/simple/django/ uses an insecure transport scheme (http). Consider using https if pypi.v2ex.com has it available
  Downloading Django-1.6-py2.py3-none-any.whl (6.7MB): 6.7MB downloaded
Installing collected packages: django
Successfully installed django
Cleaning up...
[root@test4 install]#

 

pip install 报错

标签:sid   https   led   simple   success   报错   org   deb   find   

原文地址:http://www.cnblogs.com/liang-wei/p/7118037.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!