A Python package for the Reinforcement Learning courses at Durham University.
See the notebooks and gallery for some examples.
Start with a clean Python 3.10 environment (recommended) and install/upgrade via terminal as
pip install swig
pip install --upgrade rldurhamor Jupyter notebook as
!pip install swig
!pip install --upgrade rldurham- Have you tried turning it off and on again? Restarting your kernel and/or restarting the install from a fresh and clean Python 3.10 environment resolves most problems.
- Check the error messages! In many cases, they provide useful information and in many cases the problem is not with
rldurhambut either a general Python problem or a problem withgymnasium. - On NCC you need to create your own custom environment/kernel (as for the deep learning coursework); you cannot
pip install ...things in the default environment (it may first look as if you can, but then the packages cannot be found). - Problems related to
swig- Remember that
swighas to be explicitly installed beforerldurham(as above) because of dependency issues with the packages used byrldurham, in particulargymnasium. - Under python
3.11,swigmay need to be installed using system tools (i.e. not viapip), better avoid3.11and use3.10instead. - If you see errors mentioning
Box2D, this is related togymnasium, which requiresBox2D, which requiresswig, which frequently causes problems. Installing from a clean environment, first installingswig, and using Python 3.10 (avoiding higher versions) are the best ways to avoid these problems.
- Remember that