-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'gym.envs.box2d' has no attribute 'LunarLander' #1423
Comments
Solved. It's not gym's problem. It stems from failure to install pybox2d. Please refer to here: |
pip3 install Box2D
pip3 install box2d-py
pip3 install gym[all]
pip3 install gym[Box_2D] import gym
env = gym.make("LunarLander-v2") you might need SWIG - I did. More info #1603 (comment) |
Problem fixed by simply running this command:
|
I am unable to install Box2D on my PyCharm env.
|
conda install swig |
Please make sure to you pip install gym[box2d] |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
System: Ubuntu 18 LTS subsystem of Windows 10
After
pip installed gym
, I opened python and tried to load LunarLander-v2.I got the following message:
No immediate solution to this. I have tried to install from cloned git, or pip install it in a clean virtual machine. Neither seems to solve this issue.
The text was updated successfully, but these errors were encountered: