首页 > 解决方案 > ImportError:无法导入名称“cluster_resolver”

问题描述

尝试设置 Unity3d ml-agents 时出现此错误

ImportError:无法导入名称“cluster_resolver”

按照https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Installation.md教程

从 tensorflow.contrib 导入 cluster_resolver

当我尝试运行时发生错误mlagents-learn --help

我在 MacOS 上使用 Python 3.6

标签: python-3.xtensorflowunity3dml-agent

解决方案


通过使用 Tensorflow 1.7.0 而不是教程中的 1.7.1 进行了修复。


推荐阅读