Installing prerequisite system packages

Let's begin by making sure we have the latest package versions from the Ubuntu upstream repositories. We can do that by running the following commands:

          sudo apt-get update
          
          
          sudo apt-get upgrade
        

Next, we will install the prerequisite packages. Note

hat some of these packages may already have been installed on your system, but it is good to make sure we have them all:

          sudo apt-get install -y gfortran pkg-config software-properties-common
        

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.