小编avi*_*ese的帖子

如何解决 OpenAI Gym 中“未找到环境”错误?

我正在使用gym版本 - '0.9.7'和mujoco_py版本1.50.1.41,Python 3.6.1 |Anaconda 4.4.0,安装在Mac上。

尝试时:

import gym
env = gym.make('Humanoid-v1')
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Traceback (most recent call last):
  File "/Users/usr/gym/gym/envs/registration.py", line 139, in spec
    return self.env_specs[id]
KeyError: 'Humanoid-v1'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/usr/gym/gym/envs/registration.py", line 163, in make
    return registry.make(id)
  File "/Users/usr/gym/gym/envs/registration.py", line 118, in make
    spec = self.spec(id)
  File "/Users/usr/gym/gym/envs/registration.py", line 147, in spec
    raise error.DeprecatedEnv('Env {} not found (valid versions include {})'.format(id, …
Run Code Online (Sandbox Code Playgroud)

python-3.x openai-gym

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

openai-gym ×1

python-3.x ×1