python - pip install django-import-export 读取超时
问题描述
我正在尝试使用 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
我该如何解决这个问题?
解决方案
检查您是否能够通过 https 从浏览器访问 pypi.org。还要检查防火墙级别是否有任何端口阻塞。
如果这不起作用升级 pip 版本,然后尝试安装。请检查 pypi 是否存在此分布。
推荐阅读
- swift - 以编程方式向左或向右移动空间 OSX
- python - 我有一个 Excel 表,其中包含一些页眉和页脚以及数据,现在我想在其间编辑该数据框的一列
- python - 如何用python在一个系列中逐月交换?
- hive - 从 Hive 表中检索 JSON 原始文件数据
- python - matplotlib 添加到 tkinter 中的 panedwindow
- cakephp - 在 CakePHP 3 中调用布尔错误时的成员函数 build()
- sql-server - SQL Server 将列中的所有数字加 1
- python - UnicodeEncodeError:“charmap”编解码器无法在位置 4297 编码字符“\u221e”:字符映射到
- java - 在 Java 中使用 Streams 和过滤器并与可变参数匹配
- java - 单击空白区域时如何退出EditText?