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

问题描述

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

参考链接

添加链接描述

pip install swig
pip install box2d box2d-kengz

先按照上述博客安装swig
在安装pip install box2d box2d-kengz 时依然报错
在这里插入图片描述
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for box2d-kengz
Running setup.py clean for box2d-kengz
Failed to build box2d-kengz
ERROR: Could not build wheels for box2d-kengz, which is required to install pyproject.toml-based projects

解决方案:

换成这样成功!

pip3 install Box2D

注意名称大小写(Box2D)

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值