其他分享
首页 > 其他分享> > AttributeError: module ‘gym.envs.box2d‘ has no attribute ‘LunarLander‘

AttributeError: module ‘gym.envs.box2d‘ has no attribute ‘LunarLander‘

作者:互联网

**

AttributeError: module ‘gym.envs.box2d’ has no attribute ‘LunarLander’

**
解决办法:
方法一:

pip3 install box2d-py
pip3 install gym[Box_2D]
import gym
env = gym.make("LunarLander-v2")

我安装的时候出错了,输入:

pip install Box2D

成功了!

参考网址

标签:no,envs,attribute,gym,module,box2d,install,LunarLander
来源: https://blog.csdn.net/weixin_45615278/article/details/120251631