天蓝Sea

关注

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

天蓝Sea

关注

阅读 311

2022-02-25

遇到报错

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

我能查到的统一的解决方案

pip install gym 
conda install swig
pip install box2d box2d-kengz

还是报错

尝试如下命令成功解决

pip install pygame

在这里插入图片描述

相关推荐

代码敲到深夜

AttributeError: module ‘cv2‘ has no attribute ‘face‘

代码敲到深夜 64 0 0

炽凤亮尧

module 'sklearn' has no attribute 'svm'

炽凤亮尧 104 0 0

悄然丝语

module ‘asyncio‘ has no attribute ‘run‘

悄然丝语 179 0 0

求阙者

module ‘tensorflow‘ has no attribute ‘Session‘

求阙者 39 0 0

西风白羽

AttributeError: module ‘cv2.cv2‘ has no attribute ‘ximgproc‘

西风白羽 78 0 0

爱写作的小土豆

AttributeError: module ‘matplotlib‘ has no attribute ‘verbose‘

爱写作的小土豆 131 0 0

yeamy

Pycharm module ‘serial‘ has no attribute ‘Serial‘

yeamy 23 0 0

余寿

AttributeError: module 'enum' has no attribute 'IntFlag'

余寿 110 0 0

双井暮色

AttributeError: 'module' object has no attribute 'maketrans'

双井暮色 92 0 0

雅典娜的棒槌

AttributeError: module ‘statsmodels‘ has no attribute ‘ols‘

雅典娜的棒槌 159 0 0

精彩评论(0)

0 0 举报