AI软件下载
有趣网站推荐及实用软件下载

windows电脑安装DeepSpeed报错提示无法打开输入文件“aio.lib”等

安装GOT-OCR2.0应用时发生报错,部分错误信息如下

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
test.c
LINK : fatal error LNK1181: 无法打开输入文件“aio.lib”
Traceback (most recent call last):
File “”, line 2, in
File “”, line 34, in
File “C:\Users\Administrator\AppData\Local\Temp\pip-install-iqchh6sy\deepspeed_f1833a6ac5714b25a5b849858eb9899b\setup.py”, line 182, in
abort(f”Unable to pre-compile {op_name}”)
File “C:\Users\Administrator\AppData\Local\Temp\pip-install-iqchh6sy\deepspeed_f1833a6ac5714b25a5b849858eb9899b\setup.py”, line 52, in abort
assert False, msg
AssertionError: Unable to pre-compile async_io
DS_BUILD_OPS=1
[WARNING] async_io requires the dev libaio .so object and headers but these were not found.
[WARNING] If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
[WARNING] One can disable async_io with DS_BUILD_AIO=0
[ERROR] Unable to pre-compile async_io

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.

应用默认安装的DeepSpeed是0.12.3版本,但是这个版本不支持windows系统,所以报错。

只需要安装0.14.5以上版本即可,或是直接pip install deepspeed 安装当前最新版本就可以了


又遇到上面的问题,发现直接pip install deepspeed 安装新版本还是报这个错误,

折腾了一下又报错

error: [Errno 2] No such file or directory: ‘bin\deepspeed.bat’

搞不了了。

直接安装大佬编译好的windows版本whl,省时省力。

先设置下面四个环境变量值。

set DS_BUILD_AIO=0
set DS_BUILD_EVOFORMER_ATTN=0
set DS_BUILD_OPS=0
set DS_BUILD_SPARSE_ATTN=0

然后再运行命令安装

pip install deepspeed-0.8.3+6eca037c-cp310-cp310-win_amd64.whl

deepspeed-0.8.3+6eca037c-cp310-cp310-win_amd64.whl下载链接

https://pan.quark.cn/s/f9fef5943303


AI软件用不了?2元爽玩4090: 立即体验>>

热门大语言模型API免费体验: 立即获取>>

软件催更及1对1人工答疑支持: https://nuowa.net/1806
赞(1) 打赏
软件无法使用?点击查看常见问题说明>>

最近更新

FunASR语音识别转文字软件区分说话人版-诺瓦小站

FunASR语音识别转文字软件区分说话人版

FunASR是一款优秀的基础语音识别框架,配合阿里通义团队开发的其它语音识别模型,能够实现非常好语音转文字效果,尤其在中文语音识别方面,鉴于有些用户需要对语音识别内容区分说话人,我重新做了一版区分说话人的版本。软件支持多语言识别,但是还是尽...

觉得文章对你有帮助就打赏一下作者

非常感谢你的打赏,我将有更多的动力继续提供优质内容,让我们一起创建更加美好的世界!

支付宝扫一扫

微信扫一扫