You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Docker中执行watchmedo auto-restart重启celery报错找不到auto-restart文件

报错原因
  • 冗余依赖冲突:watchdog 原生内置了 watchmedo auto-restart 子命令功能,不需要额外安装第三方依赖,你在 requirements.txt 中添加的 auto-restart~=2.2 是和 watchdog 完全无关的独立工具包,二者产生了命名冲突。
  • 执行逻辑错误:额外安装的 auto-restart 包干扰了 watchmedo 的命令解析逻辑,导致程序执行时错误尝试调用系统中不存在的 auto-restart 独立可执行文件,最终触发 FileNotFoundError 报错。
修复方法
  • 删除 requirements.txt 里的 auto-restart~=2.2 配置行
  • 重新安装依赖后再执行原 watchmedo 命令即可正常运行

内容的提问来源于stack exchange,提问作者BiggestSmile

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.26 07:06:06