pip install openpyxl-3.1.2-py2.py3-none-any.whl
python3.12安装openpyxl报错:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x07836E30>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/et-xmlfile/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x07836FD0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/et-xmlfile/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x07836F70>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/et-xmlfile/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0416E110>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/et-xmlfile/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0416E1D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/et-xmlfile/
INFO: pip is looking at multiple versions of openpyxl to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement et-xmlfile (from openpyxl) (from versions: none)
ERROR: No matching distribution found for et-xmlfile
这个错误通常是由于网络连接问题导致的。请尝试以下方法解决该问题:
检查网络连接:确保你的网络连接正常,并且可以正常访问互联网。你可以尝试在浏览器中打开一些网页来确认网络连接是否正常。
使用代理:如果你使用的是代理服务器上网,尝试设置pip使用代理。可以通过设置HTTP_PROXY
和HTTPS_PROXY
环境变量来配置代理服务器。
例如,在Windows系统中,使用命令行设置代理:
set HTTP_PROXY=http://proxy_ip:proxy_port
set HTTPS_PROXY=http://proxy_ip:proxy_port
在Linux或macOS系统中,使用命令行设置代理:
export HTTP_PROXY=http://proxy_ip:proxy_port
export HTTPS_PROXY=http://proxy_ip:proxy_port
将proxy_ip
和proxy_port
替换为你实际使用的代理服务器的IP地址和端口号。
更改pip源:尝试将pip源切换到国内源或其他可用源。可以使用pip config
命令来配置pip源。
例如,将pip源切换为清华大学的镜像源:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
你也可以尝试其他的国内源,如阿里云源、豆瓣源等。
使用离线安装包:如果以上方法都无法解决问题,你可以尝试下载et-xmlfile的离线安装包,然后使用pip install
命令进行安装。
下载et-xmlfile的离线安装包:https://pypi.org/project/et-xmlfile/#files
然后在命令行中切换到下载的安装包所在的目录,运行以下命令进行安装:
pip install et-xmlfile-VERSION.whl
将VERSION
替换为下载的安装包的版本号。
要是还不行估计没这个版本的版本,更换一个相近的版本试试。有帮助的话可以采纳一下,谢谢
用镜像源来安装
pip install openpyxl -i https://mirrors.aliyun.com/pypi/simple/