当colab使用GPU时如何解决健身房中的'属性错误'

时间:2020-03-12 14:01:28

标签: google-colaboratory openai-gym

这是我的代码:

!pip install box2d-py==2.3.8

import gym

env = gym.make('CarRacing-v0')

错误信息是:

AttributeError: module 'gym.envs.box2d' has no attribute 'CarRacing'

screenshot

但是当colab使用CPU环境时,相同的代码也是可以的。

0 个答案:

没有答案