Instructions for macOS

On macOS, the number of additional system packages that need to be installed is less than with Ubuntu systems.

Run the following commands from a Terminal:

          brew install cmake boost sdl2 swig wget
          
          
          brew install boost-python --with-python3
        

These commands will install the prerequisite system packages.

The robotics and control environment in OpenAI Gym make use of Multi-Joint dynamics with Contact (MuJoCo) as the physics engine to simulate the rigid body dynamics and other features. We briefly had a look at MuJoCo environments in Chapter 1, Introduction to Intelligent Agents and Learning Environmentsand learned that you can develop algorithms that can make a 2D robot walk, run, swim, or hop, or a 3D multi-legged robot ...

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.