dennybritz / reinforcement-learning

Implementation of Reinforcement Learning Algorithms. Python, OpenAI Gym, Tensorflow. Exercises and Solutions to accompany Sutton's Book and David Silver's course.
http://www.wildml.com/2016/10/learning-reinforcement-learning/
MIT License
20.58k stars 6.04k forks source link

Does anyone know why I can not import lib in jupyter notebook? #152

Closed aiot-tech closed 6 years ago

aiot-tech commented 6 years ago

When I perform the ipnb,that is an error in the first cell.Dose anyone else met with this situation?Or anyone has a solution of sloving this problem,thanks!


ModuleNotFoundError Traceback (most recent call last)

in () 11 if "../" not in sys.path: 12 sys.path.append("../") ---> 13 from lib.envs.cliff_walking import CliffWalkingEnv 14 from lib import plotting 15 ModuleNotFoundError: No module named 'lib.envs'
chaonan99 commented 6 years ago

Are you using Windows?

aiot-tech commented 6 years ago

Yes,I use Windows.

honglonggiao commented 6 years ago

I downloaded the folder "lib" and copy to Jupyter running directory. Rename lib to libRL. Import: from libRL.envs.gridworld import GridworldEnv It operated!

Nittur commented 6 years ago

Change lib to Lib(capital 'L') after checking if the libraries exist.

iseegr8tfuldeadppl commented 5 years ago

I know this isn't your issue but for the people who had my same problem, you'll find the lib folder here.