报错如下:
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

解决方法:
降低安装版本:pip install weditor==0.6.4
降低到哪个版本可以参考安装时失败的安装版本的上一个;
或者可以访问官网自己查看:weditor · PyPI
若安装超时:
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

命令行超时安装语句:pip --default-timeout=1000 install -U 模块名
eg:pip --default-timeout=1000 install -U uiautomator2
这篇博客介绍了如何处理Python包安装时遇到的metadata-generation-failed错误和ReadTimeoutError。建议尝试降低安装版本,例如将weditor降至0.6.4,或者增加pip的默认超时时间来避免安装超时。此外,提供了访问PyPI官网查找兼容版本的建议。
5166

被折叠的 条评论
为什么被折叠?



