python-3.x - 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
解决方案
通过使用 Tensorflow 1.7.0 而不是教程中的 1.7.1 进行了修复。
推荐阅读
- javascript - 处理 document.getElementById 抛出 nullreference 错误的更好方法是什么
- python-3.x - 如何修复 - 无法编码对象:28.0,类型:
? - c# - XSLT 通过仅过滤标记值等于的那些节点来创建另一个 XML
- java - 如何使用在 quarkus panache 中具有不同值的属性进行查询
- mysql - ERROR 2006 (HY000): MySQL 服务器已消失(在某些情况下)
- visual-studio-code - 将 TYPO3-Fluid 模板的 XSD 文件添加到 Visual Studio Code,启用自动补全
- reactjs - 如何使用 Recharts 在 X 轴上显示 4 年月份数字的刻度和标签
- python - 将 netcdf 文件的所有时间步长的图生成到地图中
- rust - rust 在 AtomicPtr 上失败的比较交换会返回什么?
- terraform - 带有“计数”的 Terraform v0.13 条件资源