No registered env with id: LineFollower-v0
Closed this issue · 1 comments
flynsequeira commented
-
pip3 install -e gym_line_follower
I used 'gym-line-follower' instead of 'gym_line_follower' because the folder name is 'gym-line-follower', and the containing folder 'gym_line_follower' doesn't have setup.py -
I'm not sure if it matters but I used pip instead of pip3. I only have pip and it corresponds to python3.7
nplan commented
- You're right. The installation command should be
pip3 install -e gym-line-follower
. I will update the readme with this fix. Thanks for noticing. - This does not matter if you only have one python and pip.
The problem is this:
After you install the environment you should run import gym_line_follower
at least once, to add the environment to gym registry. This is demonstrated in the included example. I will update the readme to make it clearer.