| title | Installation |
|---|---|
| page_id | install |
This project requires Python 3.10+.
Recommendation: Use a Python virtual environment to isolate dependencies. See the official Python venv documentation for setup instructions.
The Crazyradio is easily recognized on Linux, but you need to set up udev permissions. See the USB permission instructions to configure udev on Ubuntu/Linux.
Note for Ubuntu 20.04 users: Use
pip3instead ofpipin all installation commands below.
Install the Crazyradio drivers using the Zadig instructions.
If you're using Python 3.13, you need to install Visual Studio. During the installation process, you only need to select the Desktop Development with C++ workload in the Visual Studio Installer.
For Python 3.12+ on macOS, you need to install libusb using Homebrew:
$ brew install libusbIf your Homebrew installation is in a non-default location, you might need to link the libusb library:
$ export DYLD_LIBRARY_PATH="YOUR_HOMEBREW_PATH/lib:$DYLD_LIBRARY_PATH"pip install cflibgit clone https://github.com/bitcraze/crazyflie-lib-python.git
cd crazyflie-lib-pythonpip install -e .pip uninstall cflibIf you want help maintaining Python coding standards, you can install hooks that verify your style at commit time:
pip install pre-commit
cd crazyflie-lib-python
pre-commit install
pre-commit run --all-filesThis will run the lint checkers defined in .pre-commit-config-yaml on your proposed changes.
For information and installation of the toolbelt:
- Check to see if you pass tests:
tb test - Check to see if you pass style guidelines:
tb verify
Note: The toolbelt is an optional way of running tests and reduces the work needed to maintain your Python environment.