执行命令pip install deepspeed报错error subprocess-exited-with-error × Getting requirements to build wheel did not run successfully │ exit code 1 ╰─ 20 lines of output WARNING Unable to import torc
这个错误提示是因为在执行pip install deepspeed时,缺少了torch库。deepspeed依赖于torch库,需要先安装torch库,然后再安装deepspeed。
可以通过以下命令安装torch库:
pip install torch
安装完成后,再执行pip install deepspeed即可。
原文地址: https://www.cveoy.top/t/topic/ixz2 著作权归作者所有。请勿转载和采集!