Skip to main content
This guide provides detailed installation instructions for Donkeycar on different platforms.
Donkeycar requires Python 3.11. Ensure you have the correct Python version before proceeding.

System Requirements

Python Version

Donkeycar requires Python 3.11.0 or greater (but less than 3.12):
Donkeycar will not work with Python 3.10 or earlier, or Python 3.12 or later. You must use Python 3.11.x.

Hardware Requirements

  • Raspberry Pi 4 or 5 (recommended: 4GB+ RAM)
  • Raspberry Pi OS (64-bit recommended)
  • MicroSD card (32GB+ recommended)
  • Camera (Pi Camera Module or USB webcam)

Installation by Platform

Raspberry Pi

Jetson Nano

PC (Linux/Windows WSL)

macOS

Core Dependencies

All Donkeycar installations include these core dependencies:

Installation Extras

Donkeycar uses setuptools extras to provide platform-specific dependencies. You can combine multiple extras:

Available Extras

  • pi - Raspberry Pi dependencies (camera, GPIO, TFLite)
  • nano - Jetson Nano dependencies (Jetson GPIO, compatible library versions)
  • pc - PC dependencies (full TensorFlow, training tools)
  • macos - macOS dependencies (TensorFlow with Metal GPU support)
  • torch - PyTorch and related libraries
  • dev - Development dependencies (pytest, mypy, testing tools)

Post-Installation Steps

Upgrading Donkeycar

To upgrade to the latest version:
To upgrade with platform-specific dependencies:

Installing from Source

For development or to use the latest unreleased features:
Installing from source allows you to modify the Donkeycar code and see changes immediately without reinstalling.

Troubleshooting

Donkeycar requires Python 3.11.x. Check your version:
If you have multiple Python versions, use:
If you get TensorFlow errors on Raspberry Pi, ensure you installed the [pi] extras:
The Pi uses TensorFlow Lite, not full TensorFlow.
For Pi Camera Module:
  1. Check physical connection
  2. Enable camera in raspi-config
  3. Test with libcamera-hello --list-cameras
  4. Ensure picamera2 is installed: pip show picamera2
For Apple Silicon Macs:
  1. Ensure you installed with [macos] extra
  2. Verify tensorflow-metal is installed: pip show tensorflow-metal
  3. Test GPU:
If installation fails with memory errors (common on Raspberry Pi):
This usually means:
  1. Virtual environment is not activated
  2. Installed in one Python, running in another
Solution:

Next Steps

Quick Start

Create your first car application

Configuration

Configure your car for your specific hardware

Calibration

Calibrate steering and throttle

Community

Join the Discord for help and discussions

Getting Help

If you encounter issues:
When asking for help, include:
  • Your platform (Pi 4, Jetson Nano, etc.)
  • Python version (python --version)
  • Donkeycar version (pip show donkeycar)
  • Full error message