I encountered an error when I want to use the lunar_lander environment in gym. The error is :
error: “module ‘gym.envs.box2d’ has no attribute ‘LunarLander’”
I searched on internet and found the solution:
download swig for windows, unzip to a folder and add the folder to the PATH environment variable.
pip install box2d-py
Refer to :