python 安装 pyinstaller 失败 ReadTimeoutError

python安装pyinstaller ,命令:pip install pyinstaller
提示失败
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

把命令改为>pip install pyinstaller --timeout 1000
增加timeout时间,运行成功。

本作品采用《CC 协议》,转载必须注明作者和本文链接
讨论数量: 2

请教一下,后面这个1000是秒作单位还是分钟?

4年前 评论
MTQ_python (楼主) 4年前

还可以更改源: pip_source : https://mirrors.aliyun.com/pypi/simple

4年前 评论
MTQ_python (楼主) 4年前

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!