July 2018
Intermediate to advanced
254 pages
8h 12m
English
The OpenAI Gym is a Python package and is available in the Python Package Index (PyPI) repository. You can use easy_install or pip to fetch and install packages from the PyPI repository. Pip is a package management tool for Python, which most of you might be familiar with if you have experience scripting in Python:
(rl_gym_book) praveen@ubuntu:~$pip install gym
That's it!
Let's quickly check the installation actually went fine by running the following code. Create a gym_install_test.py file under the ~/rl_gym_book directory, type/copy the following code into it, and save it. You can also download the gym_quick_install_test.py file from the book's code repository:
#! /usr/bin/env python import gym ...
Read now
Unlock full access