Setting up Gym
You have two options for setting up OpenAI Gym to use with your Python programming environment: installing from pip, or cloning the source and installing the full repository.
Cloning the source is recommended if you want to modify a Gym environment or add environments yourself. When you first start using Gym, we recommend that you install using pip to get started and familiarize yourself with the package as quickly as possible.
You can install Gym using pip in a Terminal as follows; you'll need to make sure that you have Python 3.5+ already installed:
pip install gym
At this point, you are done, and can skip directly to the Setting up an environment part of this section.
To clone the source directly from GitHub, use the following ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access