Traceback (most recent call last): File "C:\Users\86187\Desktop\大学事务\多元数据融合与智能分析\实验二\Deep-Reinforcement-Learning-Hands-On\Chapter06\02_dqn_pong.py", line 115, in <module> env = wrappers.make_env(args.env) File "C:\Users\86187\Desktop\大学事务\多元数据融合与智能分析\实验二\Deep-Reinforcement-Learning-Hands-On\Chapter06\lib\wrappers.py", line 115, in make_env env = gym.make(env_name) File "C:\Users\86187\Desktop\大学事务\多元数据融合与智能分析\venv\lib\site-packages\gym\envs\registration.py", line 640, in make env = env_creator(**_kwargs) File "C:\Users\86187\Desktop\大学事务\多元数据融合与智能分析\venv\lib\site-packages\ale_py\env\gym.py", line 155, in __init__ self.seed() File "C:\Users\86187\Desktop\大学事务\多元数据融合与智能分析\venv\lib\site-packages\ale_py\env\gym.py", line 206, in seed raise error.Error( gym.error.Error: We're Unable to find the game "Pong". Note: Gym no longer distributes ROMs. If you own a license to use the necessary ROMs for research purposes you can download them via `pip install gym[accept-rom-license]`. Otherwise, you should try importing "Pong" via the command `ale-import-roms`. If you believe this is a mistake perhaps your copy of "Pong" is unsupported. To check if this is the case try providing the environment variable `PYTHONWARNINGS=default::ImportWarning:ale_py.roms`.
时间: 2023-07-01 11:27:12 浏览: 294
pytorch数据预处理错误的解决
5星 · 资源好评率100%
这个错误提示信息显示在使用 ALE (Arcade Learning Environment) 创建 Pong 游戏环境时出现了问题,可能是由于缺少相关的 ROM 文件导致的。可以尝试根据提示信息中的建议,先安装 gym[accept-rom-license] 以获取必要的 ROM 文件。如果你没有购买相关的许可证,则需要使用 `ale-import-roms` 命令进行导入。另外,也可以尝试设置环境变量 `PYTHONWARNINGS=default::ImportWarning:ale_py.roms`,以检查是否存在 ROM 文件不受支持的情况。
阅读全文