Reinforcement Learning Durham
A Python package for the Reinforcement Learning courses at Durham University.
See the notebooks and gallery for some examples.
Installation
Start with a clean Python 3.10 environment (recommended) and install/upgrade via terminal as
pip install swig
pip install --upgrade rldurham
or Jupyter notebook as
!pip install swig
!pip install --upgrade rldurham
Known Issues
- 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
Release files for rldurham 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rldurham-0.1.1.tar.gz | 34.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rldurham-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.9 kB
Release files / rldurham-0.1.1.tar.gz
| Download URL | rldurham-0.1.1.tar.gz |
|---|---|
| Size | 34.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8ea449ae408ff9dbf61e45f9ca32cacf7616cf8d36db378a3e8cb6fdd5ead63
|
|
BLAKE2b-256 checksum How to use checksums |
9469a348fd22e85128fb57565edbf79decc01952a8d1f583a0de79c1a3ba9416
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / rldurham-0.1.1-py3-none-any.whl
| Download URL | rldurham-0.1.1-py3-none-any.whl |
|---|---|
| Size | 31.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86d6eb376ebe9f454559b52fb0514b5abd47ef3385d555f885d6b7e5040814b4
|
|
BLAKE2b-256 checksum How to use checksums |
aae82b279576e553fef7a58958eedb9d2e4387c2a2a95f5510a705cea12b37ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|