我正在尝试使用django-import-export用excel文件填充我的模型。但是,当我做pip install django-import-export
时,出现以下错误
C:\Users\Billy Somers\webapps>pip install django-import-export
Collecting django-import-export
Retrying (Retry(total=4, connect=None, read=None, redirect=None,
status=None)) after connection broken by
ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed
out. (read timeout=15)")': /simple/django-import-export/
Retrying (Retry(total=3, connect=None, read=None, redirect=None,
status=None))
after connection broken by
'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read
timed out. (read timeout=15)")': /simple/django-import-export/
Retrying (Retry(total=2, connect=None, read=None, redirect=None,
status=None))
after connection broken by
'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read
timed out. (read timeout=15)")': /simple/django-import-export/
Retrying (Retry(total=1, connect=None, read=None, redirect=None,
status=None))
after connection broken by
'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read
timed out. (read timeout=15)")': /simple/django-import-export/
Retrying (Retry(total=0, connect=None, read=None, redirect=None,
status=None))
after connection broken by
'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read
timed out. (read timeout=15)")': /simple/django-import-export/
Could not find a version that satisfies the requirement django-import-export
(from versions: )
No matching distribution found for django-import-export
我该如何解决?
答案 0 :(得分:0)
这可能是由于互联网连接状况不佳引起的。 也许您可以使用VPN来解决此问题。
答案 1 :(得分:0)
检查您是否能够通过https从浏览器访问pypi.org。另外,请检查防火墙级别是否有任何端口阻塞。
如果这不起作用,请升级pip版本,然后尝试安装。请在pypi上检查该分布是否存在。