Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 934 Bytes

installing-dronekit.md

File metadata and controls

35 lines (22 loc) · 934 Bytes

Installing instructions for Dronekit

  1. Install required packages from terminal.

sudo apt-get install python3-dev python3-pip

  1. Install dronekit Python module.

python3 -m pip install dronekit

Updating the Dronekit

  1. To update the Dronekit for using the latest version, run the command.

python3 -m pip install dronekit --upgrade

Using Dronekit with Python >= 3.10

  1. If you are using Python 3.10 or above, you need to add the following lines before importing dronekit.
import sys
if sys.version_info.major == 3 and sys.version_info.minor >= 10:
    import collections
    from collections.abc import MutableMapping
    setattr(collections, "MutableMapping", MutableMapping)
  1. Or just simply import the dronekit_python310_compat module inside the project.
import dronekit_python310_compat

Source