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 10:27:12 浏览: 370
这个错误提示信息显示在使用 ALE (Arcade Learning Environment) 创建 Pong 游戏环境时出现了问题,可能是由于缺少相关的 ROM 文件导致的。可以尝试根据提示信息中的建议,先安装 gym[accept-rom-license] 以获取必要的 ROM 文件。如果你没有购买相关的许可证,则需要使用 `ale-import-roms` 命令进行导入。另外,也可以尝试设置环境变量 `PYTHONWARNINGS=default::ImportWarning:ale_py.roms`,以检查是否存在 ROM 文件不受支持的情况。
相关问题
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 569, in make _check_version_exists(ns, name, version) File "C:\Users\86187\Desktop\大学事务\多元数据融合与智能分析\venv\lib\site-packages\gym\envs\registration.py", line 219, in _check_version_exists _check_name_exists(ns, name) File "C:\Users\86187\Desktop\大学事务\多元数据融合与智能分析\venv\lib\site-packages\gym\envs\registration.py", line 197, in _check_name_exists raise error.NameNotFound( gym.error.NameNotFound: Environment PongNoFrameskip doesn't exist. Process finished with exit code 1
这是一个错误信息,看起来是在运行 Deep Reinforcement Learning Hands-On 这个项目中的第六章的 Pong 游戏时出现的问题。错误提示信息显示 PongNoFrameskip 环境不存在,可能是环境名称有误或者缺少相应的依赖库。你可以先确认一下项目中是否有对应的依赖库,并检查代码中是否正确指定了环境名称。
Traceback (most recent call last): File C:\Users\小杨\Desktop\Yang\Yang\lstm.py, line 78, in <module>
这是一个Python中的错误追踪信息,称为Traceback。它会显示在程序运行过程中发生错误的位置和原因。在你提供的例子中,错误发生在文件"C:\Users\小杨\Desktop\Yang\Yang\lstm.py"的第78行。
Traceback信息通常包括以下几个部分:
1. 错误类型:指示错误的类型,例如NameError、TypeError等。
2. 错误位置:指示错误发生的文件和行号。
3. 错误原因:提供了导致错误的具体原因。
要解决这个问题,你可以检查lstm.py文件的第78行,并查看是否有语法错误、变量未定义或其他可能导致错误的问题。
阅读全文
相关推荐

















