Installation¶
APReL runs on Python 3.
Install from Source¶
APReL uses ffmpeg for trajectory visualizations. Install it with the following command on Linux:
apt install ffmpeg
If you are using a Mac, you can use Homebrew to install it:
brew install ffmpeg
Clone the aprel repository
git clone https://github.com/Stanford-ILIAD/APReL.git
cd APReL
Install the base requirements with
pip3 install -r requirements.txt
(Optional) If you want to build the docs locally, you will also need some additional packages, which can be installed with:
pip3 install -r docs/requirements.txt
Install APReL from the source by running:
pip3 install -e .
Test APReL’s runner file by running
python examples/python simple.py
You should be able to see the MountainCarContinuous-v0 environment rendering multiple times. After it renders (and saves) 10 trajectories, it is going to query you for your preferences. See the next section for more information about this runner file.