无法进口ACME的Gym_wrapper,有什么解决方案吗?
导入acme成功,但找不到gym包装类
import acme
from acme.wrappers import gym_wrapper
运行时出现错误消息
ModuleNotFoundError Traceback (most recent call last)
\<ipython-input-4-9d5212a1080d\> in \<module\>()
1 # reinforcement learning
2 import acme
\----\> 3 from acme.wrappers import gym_wrapper
4 from acme.environment_loop import EnvironmentLoop
5 from acme.utils.loggers import TerminalLogger, InMemoryLogger
ModuleNotFoundError: No module named 'acme.wrappers'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
ACME框架中gym_wrapper有替代api吗?
Import of acme is successfull, but not able to find gym wrapper class
import acme
from acme.wrappers import gym_wrapper
Error Message while running
ModuleNotFoundError Traceback (most recent call last)
\<ipython-input-4-9d5212a1080d\> in \<module\>()
1 # reinforcement learning
2 import acme
\----\> 3 from acme.wrappers import gym_wrapper
4 from acme.environment_loop import EnvironmentLoop
5 from acme.utils.loggers import TerminalLogger, InMemoryLogger
ModuleNotFoundError: No module named 'acme.wrappers'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
Any alternative api for gym_wrapper in ACME framework?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您忘记安装DM-ACME环境模块。
在安装过程的第3节中清楚地说明了这一点
I think you forget to install dm-acme environment module.
It's clearly stated in the section 3. of installation process