What can I do in Colab to work with the env "LunarLander-v2" from OPENAI-gym. I have installed BOX2D and box2d-py but always return the same error:
AttributeError: module 'gym.envs.box2d' has no attribute 'LunarLander'
This passage in my local machine works, but on Colab not. What could be a solution ?
Versions: Python:3.6 - Gym:0.17.2 - BOX2D:2.3.10
Important part is to create a new Colab notebook, Click on File -> New notebook. On a new (fresh) Colab execute these:
The gym is installed by default in the new notebook however you have to install the box2d-py and gym[Box_2D]. Please close the current notebook if you have encountered the
'gym.envs.box2d' has no attribute 'LunarLander'
error. Simply use a new notebook and go on with above procedure of pip install. It will work!