udacity / deep-reinforcement-learning

Repo for the Deep Reinforcement Learning Nanodegree program
https://www.udacity.com/course/deep-reinforcement-learning-nanodegree--nd893
MIT License
4.9k stars 2.34k forks source link

AttributeError: module 'gym.envs.box2d' has no attribute 'LunarLander' #54

Closed hxhebit closed 2 years ago

hxhebit commented 3 years ago

Thank u a lot for your program, and here is a problem i met when i ran the deep-reinforcement-learning/dqn/solution/Deep_Q_Network_Solution.ipynb on the google colab platform. 图片 as u can see, I cant make the env successfully.

tawsifkamal commented 3 years ago

Hey. You have to install the box2d module separately in order to get environments such as LunarLander to work. Here is a solution that you could consider: https://stackoverflow.com/questions/51811263/problems-pip-installing-box2d