首页 > 解决方案 > 找不到满足 jdcal 要求的版本

问题描述

我已经为 python 创建了一个用于开发的虚拟环境。我的工作需要模块 openpyxl。首先我下载了​​ .tar.gz 文件,然后我使用命令 pip install repo/openpyxl-2.5.6 tar.gz 其中“repo”是我保存 .tar.gz 文件的目录。使用此错误后我收到以下错误-

[venv] sccj019251> pip install repo/openpyxl-2.5.6.tar.gz
Processing ./repo/openpyxl-2.5.6.tar.gz
Collecting jdcal (from openpyxl==2.5.6)
Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection 
object at 0x7fc0f1ecccf8>, 'Connection to pypi.org timed out. (connect 
timeout=15)')': /simple/jdcal/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection 
object at 0x7fc0f1ea6320>, 'Connection to pypi.org timed out. (connect 
timeout=15)')': /simple/jdcal/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection 
object at 0x7fc0f1ea65c0>, 'Connection to pypi.org timed out. (connect 
timeout=15)')': /simple/jdcal/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection 
object at 0x7fc0f1ea6dd8>, 'Connection to pypi.org timed out. (connect 
timeout=15)')': /simple/jdcal/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection 
object at 0x7fc0f1ea66a0>, 'Connection to pypi.org timed out. (connect 
 timeout=15)')': /simple/jdcal/
 Could not find a version that satisfies the requirement jdcal (from 
 openpyxl==2.5.6) (from versions: )
No matching distribution found for jdcal (from openpyxl==2.5.6)

请告诉我如何解决此错误

标签: pythonpython-3.x

解决方案


推荐阅读