HighwayEnv icon indicating copy to clipboard operation
HighwayEnv copied to clipboard

def space(self) -> spaces.Space:error

Open wuyukun-tong opened this issue 3 years ago • 1 comments

def space(self) -> spaces.Space:

AttributeError: module 'gym.spaces' has no attribute 'Space' why

wuyukun-tong avatar Sep 09 '21 08:09 wuyukun-tong

I don't know, it should: https://github.com/openai/gym/blob/master/gym/spaces/space.py#L4

Do you have the latest version of gym installed? Try: pip install gym --upgrade

and

> from gym import spaces
> print(spaces.Space())

eleurent avatar Sep 09 '21 10:09 eleurent