Python 安装 PyUserInput 一直无法安装(time out)

PyUserInput 需要先安装PyHook和pywin32
具体安装请自行百度,在安装好之后继续安装PyUserInput

pip install PyUserInput

报错
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1029: The handshake operation timed out'))': /simple/PyUserInput
怎么也装不上去
经查找资料发现可通过源码安装:

您可以从Github下载zip文件,
也可以从PyPI下载tar.gz文件,其中包含源代码。
将文件解压缩到目录后,应将终端会话导航
到包含setup.py的目录。
下一步是键入以下命令:
python setup.py install

在国外的源码下载地址为(打开可能较慢,但可以打开):https://pypi.org/project/PyUserInput/#files
国内加速具体请看这里

猜你喜欢

转载自blog.csdn.net/a12355556/article/details/114671543
今日推荐