脚本之家,脚本语言编程技术及教程分享平台!
分类导航

Python|VBS|Ruby|Lua|perl|VBA|Golang|PowerShell|Erlang|autoit|Dos|bat|

服务器之家 - 脚本之家 - Python - 基于pip install django失败时的解决方法

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

2021-03-04 00:17言十六 Python

今天小编就为大家分享一篇基于pip install django失败时的解决方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧

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

?
1
2
3
4
5
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/

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

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

下载速度很快,成功!

以上这篇基于pip install django失败时的解决方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持服务器之家。

原文链接:https://blog.csdn.net/xjian32123/article/details/76187066

延伸 · 阅读

精彩推荐