Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 1.49 KB

Install_RLclass_MacOS.md

File metadata and controls

47 lines (40 loc) · 1.49 KB

Install RL class MacOS

1. Visualization

conda install graphviz python-graphviz

2. Install required librairies

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

BigSur

It seems that on BigSur you need to force pyglet==1.5.11. See pyglet below. Just run:

pip install pyglet==1.5.11

3. Install gym and his environments with pip

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]'

Known Issues

pyglet

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.

gym env windows not closing

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

Sources