[英]Why am I getting a 'No module named OpenAI' Import error?
so I was trying to make a bot to train on one of the environment of Universe and on running it, I am receiving the error ( ImportError: No module named universe
).所以我试图让机器人在Universe的环境之一上进行训练并在运行它时,我收到错误(
ImportError: No module named universe
)。 Help me understand what this is and how I can fix it.帮助我了解这是什么以及如何修复它。
My code -我的代码 -
import gym
import universe
env = gym.make('HandManipulateEgg-v0')
observation_n = env.reset()
while True:
action_n = [[('KeyEvent', 'ArrowUp', True)] for ob in observation_n]
observation_n, reward_n, done_n, env.step(action_n)
env.render ()
My system details - Sayon's System Details我的系统详细信息 - Sayon 的系统详细信息
Any help will be deeply appreciated.任何帮助将不胜感激。
Universe appears to have migrated: https://github.com/openai/universe , per the repo you should use retro
.宇宙似乎已经迁移: https://github.com/openai/universe ,每次你应该使用回购
retro
。
Note that the docs indicate that you can't simply pip
this package and make it work.请注意,文档表明您不能简单地
pip
这个包并使其工作。 Specifically: "Building Gym Retro requires at least either gcc 5 or clang 3.4."具体来说: “Building Gym Retro 至少需要 gcc 5 或 clang 3.4。”
There are additional rendering and ROM integration instructions in the docs as well.文档中还有其他渲染和 ROM 集成说明。 Overall, this points to a setup process that might be considerably more involved than you seem to be expecting.
总的来说,这表明设置过程可能比您预期的要复杂得多。 Moreover, Windows 7 may very well be incapable of meeting the system requirements for this package.
此外,Windows 7 很可能无法满足此软件包的系统要求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.