基于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
投稿

猜你喜欢

  • NodeJs Express框架操作MongoDB数据库执行方法讲解

    2024-01-25 08:59:08
  • 用Python编写个解释器实现方法接受

    2023-01-11 15:50:08
  • 一篇文章告诉你如何用Python控制Excel实现自动化办公

    2022-02-03 17:07:59
  • Python实现搜索算法的实例代码

    2023-08-09 14:24:59
  • python中pandas.read_csv()函数的深入讲解

    2023-12-27 00:10:32
  • js显示动态时间的方法详解

    2024-05-05 09:12:35
  • 在antd Form表单中select设置初始值操作

    2024-05-02 17:03:12
  • Google 地图API Map()构造器详解

    2024-05-05 09:29:04
  • Python+Sklearn实现异常检测

    2022-09-06 14:28:47
  • Pycharm更换python解释器的方法

    2023-03-23 10:02:58
  • SQL Server 2005 Management Studio Express企业管理器将英文变成简体中文版的实现方法

    2024-01-27 23:35:38
  • Python函数命名空间,作用域LEGB及Global详析

    2022-09-18 18:14:16
  • php过滤器使用详解

    2023-06-13 01:52:23
  • 详解Python给照片换底色(蓝底换红底)

    2023-02-03 02:07:45
  • Python实现简单拆分PDF文件的方法

    2022-09-27 19:20:37
  • 利用Python实现朋友圈中的九宫格图片效果

    2023-07-31 01:37:22
  • PyCharm安装库numpy失败问题的详细解决方法

    2023-05-18 22:45:16
  • 利用Python判断文件的几种方法及其优劣对比

    2022-07-03 06:20:02
  • Python日志:自定义输出字段 json格式输出方式

    2022-08-20 01:27:19
  • python先序遍历二叉树问题

    2023-10-09 10:25:30
  • asp之家 网络编程 m.aspxhome.com