我正在使用健身房版本 - '0.9.7',以及安装在 Mac 上的 mujoco_py 版本 1.50.1.41、Python 3.6.1 |Anaconda 4.4.0。
尝试时:
import gym
env = gym.make('Humanoid-v1')
我收到以下错误:
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, matching_envs))
gym.error.DeprecatedEnv: Env Humanoid-v1 not found (valid versions include ['Humanoid-v2'])
我曾尝试在网上寻找解决方案,但没有成功。