基于pip install django失败时的解决方法

作者:言十六 时间:2021-06-19 06:01:27 

使用pip安装Django时报错,先是:


C:\Users\admin>pip install django
Collecting django
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/django/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('_ssl.c:733: The handshake operation timed out',))': /simple/django/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('timed out',))': /simple/django/

之后开始下载后没多少就直接报错退出了,可以用下面的方法换源下载:


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

下载速度很快,成功!

来源:https://blog.csdn.net/xjian32123/article/details/76187066

标签:pip,install,django
0
投稿

猜你喜欢

  • PHP入门教程之会话控制技巧(cookie与session)

    2023-11-16 00:13:39
  • Django csrf校验的实现

    2023-10-01 14:49:40
  • oblog4.6转换ucenterHome1.5过程全记录,提供老用户无法登陆的补丁

    2009-10-29 12:04:00
  • CodeIgniter分页类pagination使用方法示例

    2023-11-24 10:33:05
  • 解决python路径错误,运行.py文件,找不到路径的问题

    2023-03-13 05:47:33
  • PHP 实现多服务器共享 SESSION 数据

    2023-11-19 12:43:24
  • 小结Python的反射机制

    2023-10-16 22:30:28
  • python 列表元素左右循环移动 的多种解决方案

    2023-06-15 06:21:45
  • python 爬取疫情数据的源码

    2022-05-22 13:21:54
  • Python调用Tkinter示例浅析

    2022-04-30 02:53:32
  • position:relative/absolute无法冲破的等级

    2007-05-11 17:03:00
  • 关注前端开发流程

    2009-12-31 17:38:00
  • 仿windows选项卡效果拾零

    2013-07-13 09:33:42
  • Asp教程:Response对象

    2007-10-01 18:08:00
  • JS的IE和FF兼容性问题汇总

    2008-03-08 13:01:00
  • 瞬间的设计 I

    2009-12-25 18:54:00
  • CSS分栏布局的方法:绝对定位和浮动

    2009-04-30 13:10:00
  • asp如何编写一个DNS LOOKUP程序?

    2009-11-07 18:47:00
  • golang中defer的关键特性示例详解

    2023-08-06 06:12:45
  • 轻松了解数据库计算机的概念和发展方向

    2009-01-23 13:55:00
  • asp之家 网络编程 m.aspxhome.com