Installing packages

Assuming you have a working Python installation, you can install all the required packages using the requirements.txt file found in our repository. We also recommend you create a virtualenv to isolate your development environment from your main OS system. The following steps will help you construct an environment and install the packages:

# Install virtualenv using pip$ pip install virtualenv# Create a virtualenv$ virtualenv rl_projects# Activate virtualenv$ source rl_projects/bin/activate# cd into the directory with our requirements.txt(rl_projects) $ cd /path/to/requirements.txt# pip install the required packages(rl_projects) $ pip install -r requirements.txt

And now you are all set and ready to start! The next few sections ...

Get Python Reinforcement Learning Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.