Install OpenAI Gym with Atari on macOS

image

It’s simple: install cmake and zlib first, and then install gym and atari environment on macOS.

brew install cmake zlib
pip install 'gym[atari]'

The quotation marks are for people who are using zsh. If you want all environments provided by OpenAI Gym, you can install gym[all].

Enjoy your games.

Xueguang Lyu
Xueguang Lyu
CS Ph.D. Candidate

My research interests include reinforcement learning and multi-agent cooperation.