-
Install the Python development environment
Check if your Python environment is already configured on your system. We recommend using Python 3.
python --version pip --version virtualenv --version
If these packages are already installed, skip to the next step. Otherwise, install on Ubuntu by running:
sudo apt update sudo apt install python-dev python-pip sudo pip install -U virtualenv # system-wide install
-
Create a virtual environment (recommended)
Create a new virtual environment in the root directory or anywhere else:
virtualenv --system-site-packages -p python3 .venv
Activate the virtual environment every time before you use the package:
source .venv/bin/activate
And exit the virtual environment when you are done:
deactivate
-
Install dependencies
The package can be installed by running:
pip install -r requirements.txt
Run training and evaluation:
python train_diayn_ppo.py --root_dir outputs