解决BUG:error: metadata-generation-failed
短信预约 -IT技能 免费直播动态提醒
BUG说明:
执行命令:pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple 时报错,经分析未检测单setuptools-57.5.0
具体报错如下:
error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [1 lines of output] error in ConcurrentLogHandler setup command: use_2to3 is invalid. [end of output] 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 -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple之前,先执行pip install setuptools==57.5.0 -i https://pypi.tuna.tsinghua.edu.cn/simple 命令
成功解决:
Installing collected packages: xlwt, ConcurrentLogHandler, urllib3, idna, charset-normalizer, certifi, requestsSuccessfully installed ConcurrentLogHandler-0.9.1 certifi-2022.9.24 charset-normalizer-2.0.12 idna-3.4 requests-2.27.1 urllib3-1.26.13 xlwt-1.3.0
来源地址:https://blog.csdn.net/qq_41475067/article/details/128631994
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341