安装和使用openai / gym时出错

时间:2019-02-05 10:26:53

标签: python artificial-intelligence

在尝试安装和使用python时,在openAI和Gym中遇到问题:

┌─[✗]─[root@parrot]─[~/code]
└──╼ #python spaceinvaders.py 
Traceback (most recent call last):
File "spaceinvaders.py", line 2, in <module>
env = gym.make('FrozenLake-v0')
File "/root/Downloads/gym-master/gym/envs/registration.py", line 171, in 
make
return registry.make(id, **kwargs)
File "/root/Downloads/gym-master/gym/envs/registration.py", line 123, in 
make
env = spec.make(**kwargs)
File "/root/Downloads/gym-master/gym/envs/registration.py", line 87, in 
make
env = cls(**_kwargs)
File "/root/Downloads/gym-master/gym/envs/toy_text/frozen_lake.py", line 
116, in __init__
super(FrozenLakeEnv, self).__init__(nS, nA, P, isd)
File "/root/Downloads/gym-master/gym/envs/toy_text/discrete.py", line 38,  
in __init__
self.action_space = spaces.Discrete(self.nA)
File "/root/Downloads/gym-master/gym/spaces/discrete.py", line 15, in 
__init__
super().__init__((), np.int64)
TypeError: super() takes at least 1 argument (0 given)

另一个问题是,只需将其放入pastebin中即可 https://pastebin.com/JacXFzTV

0 个答案:

没有答案