Python OpenAI的gym错误(AttributeError:'Timer'对象没有属性''u seed')

2024-06-30 12:16:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用的是python3.5.3和debian9

我试着从Universe的博客上运行这个示例代码:

import gym
import universe

env = gym.make('flashgames.DuskDrive-v0') #problem here
env.configure(remotes=1)
observation_n = env.reset()

while True:
  action_n = [[('KeyEvent', 'ArrowUp', True)] for ob in observation_n]
  observation_n, reward_n, done_n, info = env.step(action_n)
  env.render()

我得到了一个错误:

^{pr2}$

我还发现了this问题,它问的是同一个问题,但没有得到回答。在

你们能帮我解决这个问题并运行程序吗?在


Tags: 代码importenvtrue示例makeactiongym