pip install trl
git clone https://github.com/lvwerra/trl.git cd trl/ pip install -e .
If you want the development install you can replace the pip install with the following:
pip install -e ".[dev]"