首页 > 代码库 > pip install 报错
pip install 报错
问题描述,在使用pip安装django相关软件包时,提示错误如下:
[root@test4 install]# pip install django==1.6Downloading/unpacking django==1.6Cannot fetch index base URL https://pypi.python.org/simple/Could not find any downloads that satisfy the requirement django==1.6Cleaning up...No distributions at all found for django==1.6Storing 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/simpleDownloading/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 downloadedInstalling collected packages: djangoSuccessfully installed djangoCleaning up...[root@test4 install]#
pip install 报错
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。