无法安装 pip 包

时间:2021-02-23 17:47:28

标签: python

The error

大家好! 我遇到这个错误(上图)很长时间了,这里没有什么可以为我解决的。 pip 为我尝试安装的每个包执行此错误(这次是 pynput)。 我有 python 3.8.2,pip 是最新的。 我尝试做 --default-timeout=1000 事情,但它也不起作用。 Python 3.8.2 也在 PATH 中。 pip 版本是 19.2.3。

错误:C:\Users\LikeV>pip install pynput --user --upgrade Collecting pynput WARNING: 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/pynput/ WARNING: 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/pynput/ WARNING: 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/pynput/ WARNING: 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/pynput/ WARNING: 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/pynput/ ERROR: Could not find a version that satisfies the requirement pynput (from versions: none) ERROR: No matching distribution found for pynput

1 个答案:

答案 0 :(得分:0)

尝试几个选项:

pip install pynput --user --upgrade

通常对我有用。