Completing the OpenAI Gym setup

Let's update our version of pip first:

          (rl_gym_book) praveen@ubuntu:~$ pip install --ignore-installed pip
        

Then, let's download the source code of OpenAI Gym from the GitHub repository into our home folder:

          (rl_gym_book) praveen@ubuntu:~$cd ~
          
          
          (rl_gym_book) praveen@ubuntu:~$git clone https://github.com/openai/gym.git
          
          
          (rl_gym_book) praveen@ubuntu:~$cd gym
        
If you get an error saying git command not found or something similar, you might have to install Git. On Ubuntu systems, you can install it by running this command, sudo apt-get install git. On macOS, if you don't have Git installed already, it will prompt you to install it when you run the git clone command.

We are now in the final stage of a complete ...

Get Hands-On Intelligent Agents with OpenAI Gym 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.