问题分析‘function‘ object has no attribute ‘Viewer‘
gym破坏性升级,版本不兼容。
解决方案方法一:
Python Gym ImportError cannot import name ‘rendering‘ from ‘gym.envs.classic_control‘
方法二:
把gym改到0.15.4版本
pip install gym=0.15.4参考文章
- 强化学习之Gym基础入门(1)

问题分析‘function‘ object has no attribute ‘Viewer‘
gym破坏性升级,版本不兼容。
解决方案方法一:
Python Gym ImportError cannot import name ‘rendering‘ from ‘gym.envs.classic_control‘
方法二:
把gym改到0.15.4版本
pip install gym=0.15.4参考文章