# Is it possible to execute python code from MavSDK on a drone?

**URL:** <https://discuss.px4.io/t/is-it-possible-to-execute-python-code-from-mavsdk-on-a-drone/13212>\
**Category:** MAVSDK\
**Created:** [October 3, 2019, 7:24pm UTC](https://discuss.px4.io/t/is-it-possible-to-execute-python-code-from-mavsdk-on-a-drone/13212 "2019-10-03T19:24:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PierreA](https://discuss.px4.io/letter_avatar_proxy/v4/letter/p/c89c15/32.png) [@PierreA](https://discuss.px4.io/u/PierreA)\
**Post date:** [October 3, 2019, 7:24pm UTC](https://discuss.px4.io/t/is-it-possible-to-execute-python-code-from-mavsdk-on-a-drone/13212/1 "2019-10-03T19:24:18Z")

</div>

Hi I’m a french student and I have to create a drone for my school project. So I would like to know if it’s possible to create missions that my drone will execute simply by using the MAVSDK and not something else like a Raspberry Pi ? And also can I use the MAVSDK Python API on MacOS?

Thanks for your answers

---

<div class="post-metadata">

**Author:** ![JonasVautherin](https://discuss.px4.io/user_avatar/discuss.px4.io/jonasvautherin/32/4186_2.png) [@JonasVautherin](https://discuss.px4.io/u/JonasVautherin)\
**Post date:** [October 21, 2019, 6:57am UTC](https://discuss.px4.io/t/is-it-possible-to-execute-python-code-from-mavsdk-on-a-drone/13212/2 "2019-10-21T06:57:10Z")

</div>

Hello!

Just like you can plan missions from QGroundControl and directly send them to your autopilot (without the need for a companion computer, e.g. a Raspberry Pi), you can do that from MAVSDK 🙂.

And yes, you can run MAVSDK-Python from macOS! You should be able to install it with:

```auto
pip install mavsdk

```

Note that mavsdk is currently outdated on PyPi for macOS, I’ll update that ASAP. You can track the issue here: [https://github.com/mavlink/MAVSDK-Python/issues/118](https://github.com/mavlink/MAVSDK-Python/issues/118). In the meantime, of course you could use MAVSDK-Python from sources!
