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.64k stars 6.04k forks source link

Repo installation error #128

Open wert93 opened 6 years ago

wert93 commented 6 years ago

For some reasons I cannot install the repo from pip install git+https://github.com/dennybritz/reinforcement-learning.git

This is the error I get:

Collecting git+https://github.com/dennybritz/reinforcement-learning.git
  Cloning https://github.com/dennybritz/reinforcement-learning.git to /private/var/folders/1r/byvfb0y518x52strwrzkmzpw0000gn/T/pip-lG5WrJ-build
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    IOError: [Errno 2] No such file or directory: '/private/var/folders/1r/byvfb0y518x52strwrzkmzpw0000gn/T/pip-lG5WrJ-build/setup.py'
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/1r/byvfb0y518x52strwrzkmzpw0000gn/T/pip-lG5WrJ-build/

I am a noob to Python, therefore I might very well be missing something important. Thanks.

jonahweissman commented 6 years ago

I'm not really sure what the advantage of using pip is, but if your goal is just to get the source code, this should work:

git clone https://github.com/dennybritz/reinforcement-learning.git
wert93 commented 6 years ago

Thanks for your answer. I have already done it! But the problem is, I do not know how should I proceed in order to try out the exercises in the repository: do I have to make use of the downloaded files or is there another way to import them in python?

Thank you.

BAILOOL commented 6 years ago

@wert93, Check out Table of Contents. It is already sorted in the order you should proceed.

jonahweissman commented 6 years ago

@wert93 If you install Jupyter Notebook, you should be able to open the files with it

wert93 commented 6 years ago

My question is, to play around with something like this https://github.com/dennybritz/reinforcement-learning/blob/master/DP/Policy%20Evaluation.ipynb should I just copy-paste the code into Python? Because in this case, I receive a missing module error.

However, as you suggest, I should open the files with Jupyter and run them from it, right?