Windows

Windows provides a few different methods for setting up and installing Donkey Car.

  1. Miniconda
  2. Native
  3. Windows Subsystem for Linux (WSL) - Experimental

If you are unfamiliar or concerned about the way that you install Donkey Car, please use option 1 above.

Install Donkeycar on Windows (miniconda)

donkey

  • Install miniconda Python 3.7 64 bit.

  • Open the Anaconda prompt window via Start Menu | Anaconda 64bit | Anaconda Prompt

  • type git. If the command is not found, then install git 64 bit

  • Change to a dir you would like to use as the head of your projects.

mkdir projects
cd projects
  • Get the latest donkey from Github.
git clone https://github.com/autorope/donkeycar
cd donkeycar
git checkout master
  • If this is not your first install, update Conda and remove old donkey
conda update -n base -c defaults conda
conda env remove -n donkey
  • Create the Python anaconda environment
conda env create -f install\envs\windows.yml
conda activate donkey
pip install --user tensorflow==2.2.0
pip install -e .[pc]

Note: if you are using ZSH (you'll know if you are), you won't be able to run pip install -e .[pc]. You'll need to escape the brackets and run pip install -e .\[pc\].

  • Optionally Install Tensorflow GPU - only for NVidia Graphics cards

If you have an NVidia card, you should update to the lastest drivers and install Cuda SDK.

conda install tensorflow-gpu==2.2.0
  • Optionally configure PyTorch to use GPU - only for NVidia Graphics cards

If you have an NVidia card, you should update to the lastest drivers and install Cuda SDK.

conda install cudatoolkit=<CUDA Version> -c pytorch

You should replace <CUDA Version> with your CUDA version. Any version above 10.0 should work. You can find out your CUDA version by running nvcc --version or nvidia-smi.

  • Create your local working dir:
donkey createcar --path ~/mycar

Note: After closing the Anaconda Prompt, when you open it again, you will need to type conda activate donkey to re-enable the mappings to donkey specific Python libraries


Next let's install software on Donkeycar


Install Donkeycar on Windows (native)

donkey

  • Install Python 3.6 (or later)

  • Install Git Bash. During install make sure you check Git to run 'from command line and also from 3rd-party software'.

  • Open Command Prompt as Administrator via the Start Menu (cmd.exe | right-click | run as administrator)

  • Change to a folder that that you would like to use for all your projects

mkdir projects
cd projects
  • Get the latest donkey from Github.
git clone https://github.com/autorope/donkeycar
cd donkeycar
git checkout master

NOTE: The dev branch has the latest (unstable) version of donkeycar with experimental features.

  • Install Donkeycar into Python
pip3 install -e .[pc]
  • Recommended for GPU Users: Install Tensorflow GPU - only for NVIDIA Graphics cards

If you have an NVIDIA card, you should update to the lastest drivers and install Cuda SDK.

pip3 install tensorflow
  • Create your local working dir:
donkey createcar --path \Users\<username>\projects\mycar --template complete

Templates There are a number of different templates to choose from in Donkey Car. basic | complete You can find all the templates in the donkeycar/donkeycar/templates folder


Next let's install software on Donkeycar


Install Donkeycar on Windows (WSL)

The Windows Subsystem for Linux (WSL) lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup.

  • Install Windows Subsystem for Linux.
  • Turn on Windows 10 "Windows Subsystem for Linux" Feature (Settings > Apps > Programs and Features > Turn Windows features on or off)
  • Download a Linux Distribution from the Microsoft Store (recommend Ubuntu Latest)
  • Open the Ubuntu App and configure.

  • Open the Ubuntu App to get a prompt window via Start Menu | Ubuntu

  • Install git using sudo apt install git

  • Install python3 using sudo apt install python3

  • Change to a directory that you would like to use as the head of all your projects.

mkdir projects
cd projects
  • Get the latest donkey from Github.
git clone https://github.com/autorope/donkeycar
cd donkeycar
git checkout master

NOTE: The dev branch has the latest (unstable) version of donkeycar with experimental features.

  • Install Donkeycar into Python
pip3 install -e .[pc]
  • Experimental Support - GPU Users: Install Tensorflow GPU - only for NVIDIA Graphics cards

If you have an NVIDIA card, you should update to the lastest drivers and install Cuda SDK.

pip3 install tensorflow
  • Create your local working dir:
donkey createcar --path /path/to/projects/mycar --template complete

Templates There are a number of different templates to choose from in Donkey Car. basic | complete You can find all the templates in the donkeycar/donkeycar/templates folder


Next let's install software on Donkeycar