命令行
pip install --no-index -f https://github.com/Kojoley/atari-py/releases atari_py
装完后测试
import gym
env = gym.make('Pong-v0')
for i_episode in range(100):
env.reset()
for t in range(100):
env.render()
action = env.action_space.sample()
observation, reward, done, info = env.step(action)
if done:
print("Episode finished after {} timesteps".format(t+1))
break
运行后即可显示