我正在尝试使用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我该如何解决这个问题?
发布于 2018-09-06 12:01:59
这可能是由于互联网连接状况不佳造成的。也许您可以通过使用VPN来修复此问题。
发布于 2018-09-06 12:02:47
检查是否能够通过https从浏览器访问pypi.org。还要检查是否有端口在您的防火墙级别上被阻止。
如果这不起作用,升级pip版本,然后尝试安装。一定要在pypi上检查这个发行版是否存在。
https://stackoverflow.com/questions/52196302
复制相似问题