简体   繁体   English

为什么我会收到“没有名为 OpenAI 的模块”导入错误?

[英]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.

相关问题 为什么在从 openAI 导入 Universe 模块时出现“无效语法”错误 - Why am I getting "invalid syntax" error while importing universe module from openAI 为什么我收到错误:没有名为“email.MIMEMultipart”的模块? - Why am I getting the error: No module named 'email.MIMEMultipart'? 为什么我没有名为“pyautogui”的模块? - Why am I getting No module named 'pyautogui'? 为什么我得到Tensorflow服务模块导入错误? - Why am I getting Tensorflow Serving module import error? 为什么我在之前工作时收到错误消息“ModuleNotFoundError:没有名为‘plotly.express’的模块”? - Why am I getting error message as "ModuleNotFoundError: No module named 'plotly.express" while it was working before? 为什么在尝试使用 pip 安装健身房 openai 时出现错误? - Why am I getting an error while trying to install gym openai using pip? 为什么在安装 cx_freeze 后出现“没有名为 cx_Freeze 的模块”错误? - Why am I getting a “no module named cx_Freeze” error after installing cx_freeze? 我为什么会收到此错误:“ ModuleNotFoundError:没有名为&#39;nst_utils&#39;的模块” - Why am I getting this error: “ModuleNotFoundError: No module named 'nst_utils'” 为什么收到错误消息ImportError:没有命名模块 <app> .urls? - Why am I getting the error message ImportError: No module named <app>.urls? 为什么我收到 No module named 'django.utils.lru_cache' 错误? - Why am I getting No module named 'django.utils.lru_cache' error?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM