原报错代码部分:
env.monitor.start(monitor_path,
resume=True,
video_callable=lambda count: count % record_video_every == 0)
reason:
env.monitor is deprecated. Wrap your env with gym.wrappers.Monitor to record data.
所以改为 env = Monitor()
注意:1.加from gym.wrappers import monitor
2.Monitor()内部参数要改为Monitor(env, directory=monitor_path,其他直接写)
相关文章
- httplib:AttributeError: 'module' object has no attribute 'HTTPConnection'
- 启动Tensorboard时发生错误:class BeholderHook(tf.estimator.SessionRunHook): AttributeError: module 'tensorflow.python.estimator.estimator_lib' has no attribute 'SessionRunHook'
- python中引入包的时候报错AttributeError: module 'sys' has no attribute 'setdefaultencoding'解决方法?
- [已解决]pycharm报错:AttributeError: module 'pip' has no attribute 'main'
- python文件名不要跟模块名相同,报错AttributeError: 'module' object has no attribute 'Differ'
- 使用jieba导入引用方法时,报错AttributeError: module 'jieba' has no attribute 'cut'
- flask中'bool' object has no attribute '__call__'问题
- cv2.SIFT() AttributeError: 'module' object has no attribute 'SIFT' OpenCV Python can't use SURF, SIFT
- pytorch版本问题:AttributeError: 'module' object has no attribute '_rebuild_tensor_v2'
- py+selenium 明明定位不到元素,但却不报错或是报错AttributeError: 'list' object has no attribute 'click'【已解决】