conda install graphviz python-graphviz
You can install required packages cmake
and zlib
with brew
:
brew install cmake zlib
WARNING: brew
auto-update all packages when doing an install !
Use cmd below to not auto-update:
HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake zlib
It seems that on BigSur you need to force pyglet==1.5.11
. See pyglet below. Just run:
pip install pyglet==1.5.11
pip install gym gym[atari] gym[classic_control] gym[box2d] gym[algorithms]
NOTE: If you use zsh you need to add quotes arround gym[env]
like below
pip install gym 'gym[atari]' 'gym[classic_control]' 'gym[box2d]' 'gym[algorithms]'
You can resolve a problem with pyglet
by forcing the install of version 1.5.11
, run cmd below to do it:
pip install pyglet==1.5.11
See here for more information.
The .close()
method is not working for some people when called from a code cell of a jupyter notebook but work in a python script `.py
- Medium article: Install OpenAI Gym with Atari on macOs
- Issue on gym repo: Gym on Mac OS X Big Sur #2101