PIP安装python包,报ERROR: No matching distribution found for XXXXX 问题的处理

PIP安装python包,报ERROR: No matching distribution found for XXXXX 问题的处理

最近在安装python包的时候老是报一个错误:

PS C:\Users\Administrator> pip install matplotlib
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('_ssl.c:980: The handshake operation timed out'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('_ssl.c:980: The handshake operation timed out'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('_ssl.c:980: The handshake operation timed out'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('_ssl.c:980: The handshake operation timed out'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', TimeoutError('_ssl.c:980: The handshake operation timed out'))': /simple/matplotlib/
ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: none)
ERROR: No matching distribution found for matplotlib
WARNING: There was an error checking the latest version of pip.

不管怎么装,都装不上,不同的包都是报这个错误,在网上找到的内容大多都相同,说是重新安装,或者加参数,结果全没用,最后准备排查python版本的问题,准备降级试一下。
因为之前安装的时候,是安装的3.10.2,以为是包不支持3.10或3.11,准备跑官网准备下载3.9试试,但是想想3.10都已经出来那么久了,3.11都出来了,没道理不支持,就再去看了一下3.10的版本,最新的是3.10.9,而主要版本是3.10.8。

Python 3.10.8 is the newest major release of the Python programming language, and it contains many new features and optimizations.

一般来说,包的支持的应该都是支持主要版本,而我安装的3.10.2,估计是版本不对,遂升级到3.10.9,OK,解决了,升级之后一下就安装上了。。。。

所以以后安装python的时候,还是直接装主要版本吧,其它小版本直接跳过了。

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
心中带点小风骚的头像心中带点小风骚普通用户
上一篇 2023年7月29日
下一篇 2023年7月29日

相关推荐