Donkey Methods
Follow the steps outlined on the official DonkeyCar website for you operating system of choice.
- Setup Linux Host PC
- Setup Windows Host PC
- Setup Mac Host PC
Donkey2 Method
Linux Kernel-based Windows pc is strongly recommended to avoid unnecessary hassle.
Linux Kernel installation:
- Run cmd as administrator and paste the following code:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Restart your pc. ( Note: you may need to restart your pc twice if you see any error )
- Install Ubuntu 18.04 LTS from windows store or from here.
- Open Ubuntu. Set your username & password. The password is required to install anything through ubuntu.
- Finally run this code in Ubuntu :
sudo apt update && sudo apt upgrade
- Your windows pc now has Linux kernel.
Donkey Software Installation in Linux Kernel:
- Paste this code to install miniconda:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
- Then this:
bash ./Miniconda3-latest-Linux-x86_64.sh
Create & Activate Virtual Environment:
- Create virtual environment through this code:
virtualenv env --python=python3
- Activate the environment:
source env/bin/activate
Download and Install the Dependencies for This Car Template:
git clone https://github.com/autorope/donkey2.git
cd donkey2
pip install -r drive_requirements.txt