How to Solve NameError: name 'envs' is not defined -- gym

Solution: Import the 'envs' module

To Solve the error, add the following line to the top of your code.

from gym import envs

 

For more information:
Python gym envs