python3.8/site-packages/ray/rllib/env/utils.pyin<module>5556--->57classVideoMonitor(wrappers.Monitor):58# Same as original method, but doesn't use the StatsRecorder as it will59# try to add up multi-agent rewards dicts, which throws errors.AttributeError:module'gym.wrappers'hasnoattribute'...
针对你提出的问题“module 'gym.wrappers' has no attribute 'monitor'”,我将按照给出的提示分点进行回答: 核实gym.wrappers模块中是否存在monitor属性: 在较新版本的OpenAI Gym库中,monitor功能已经从gym.wrappers模块中移除。因此,直接访问gym.wrappers.monitor会导致“AttributeError”。 确认gym库的版本: 你可以通...
_monitor: Optional[gym.wrappers.Monitor] AttributeError: module 'gym' has no attribute 'wrappers' " DongChen06closed this ascompletedDec 7, 2021 Assignees No one assigned Labels None yet Projects None yet Milestone No milestone Development
_monitor: Optional[gym.wrappers.Monitor] AttributeError: module 'gym' has no attribute 'wrappers' " DongChen06closed this ascompletedDec 7, 2021 Assignees No one assigned Labels None yet Projects None yet Milestone No milestone Development