报错如下:

  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

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐