# Run MakeCode's Python Code on a Raspberry Pi?

**URL:** <https://forum.makecode.com/t/run-makecodes-python-code-on-a-raspberry-pi/24477>\
**Category:** Arcade\
**Created:** [November 22, 2023, 8:06pm UTC](https://forum.makecode.com/t/run-makecodes-python-code-on-a-raspberry-pi/24477 "2023-11-22T20:06:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [January 23, 2024, 7:53pm UTC](https://forum.makecode.com/t/run-makecodes-python-code-on-a-raspberry-pi/24477/3 "2024-01-23T19:53:43Z")

</div>

Hi @MicroGuy,

You would not be able to easily interpret/compile MakeCode Python code into a game and run it on a RPi, since MakeCode Python is only an translation layer on top of MakeCode Static TypeScript(JavaScript), which can be run online in the simulator or compiled into executables for different supported hardware.

However, when first compiled to the supported RPi0 hardware in the editor and downloaded to _.elf_ files, these games actually work on most ARM hardware running Linux(RPi0, 1, 2, 3, 4 etc.).

Not only on “pi0” and not requiring the “arcade pi0 os” as @robotosaurus incorrectly/inaccurately claims above.

> [@MakeCode Arcade on Raspberry Pi (including RetroPie, Recalbox, Batocera etc.)](https://forum.makecode.com/t/makecode-arcade-on-raspberry-pi-including-retropie-recalbox-batocera-etc/14267):
>
> With reference to previous correspondence with @richard and @peli, and happy to announce that McAirpos now supports running MakeCode Arcade games natively and with controller support on [Batocera](https://batocera.org) retro-gaming distro in addition to [RetroPie](https://retropie.org.uk), [Recalbox](https://www.recalbox.com) and the [Raspberry Pi OS](https://www.raspberrypi.com/software/) [console](https://en.wikipedia.org/wiki/Linux_console) and presumably other similar ARM hardware and Linux flavours, as well as a new working [Ansible](https://www.ansible.com) playbook template that allows quickly scripted installation onto several devices in parallel in e.g. a classroom, collaborat…

Lacking internet access for your RPis, you could transfer the _.elf_ game files by e.g. USB thumb drives.

---

_[View the full topic](https://forum.makecode.com/t/run-makecodes-python-code-on-a-raspberry-pi/24477)._
