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

运行mlflow app时遇AttributeError:numpy无object属性求助

解决运行mlflow app时的numpy AttributeError问题

运行mlflow app时出现以下错误:

raise AttributeError("module {!r} has no attribute " AttributeError:
module 'numpy' has no attribute 'object'

解决方案:

  • 降低numpy版本到1.23.x及以下:numpy 1.24+版本移除了numpy.object属性,部分旧版本mlflow依赖该属性。执行命令:pip install numpy==1.23.5
  • 升级mlflow到最新版本:新版本mlflow已适配numpy 1.24+的API变更,执行命令:pip install --upgrade mlflow
  • 确认虚拟环境一致性:确保运行mlflow app的虚拟环境中,numpy与mlflow版本匹配,避免全局环境和虚拟环境的依赖版本冲突。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.05 11:50:20