How To Run Python Programs On Android
Tags: python, android, beginners
Published: 2018-08-21 13:45:34

---
title: How To Run Python Programs On Android
published: true
description: Python is a powerful programming and Android is a powerful operating system, when these two combines , door of multiple awesome opportunities opens
tags: python, android, beginners
---

![.](https://palash.tk/assets/images/py-in-an.jpg)

If you're reading this there're chances that you're interested in learning Python or already a Python Programmer who loves to experiment, if  yes , **Welcome My Friend To The World of Curiosity**. If you've an Android device and you want to run python programs on your device this article is for you.



> [Android](https://en.m.wikipedia.org/wiki/Android_(operating_system)) is based on [Linux](https://www.linux.com/what-is-linux) [Kernel](https://en.m.wikipedia.org/wiki/Kernel_(operating_system)) so it's 100% possible to run python. 

There are plenty of ways to run python Programs in Android, we'll discuss few of them here. So let's start our journey.



## #1 QPython

When it comes to run Python Programs, Scripts on Android, first name came to my mind is **QPython** developed by **QPythonLab**

![QPython Screenshot - Python For Android](https://fsgh.palash.tk/imgs/qpy.jpg)

It has so much features that you'll love it. It has **Terminal emulator** , Python REPL , **Powerful Editor**,  Many python libraries, **Run scripts via QR code** , **PIP** , courses and much more.

But it's drawback is when You install it first from Play Store it comes with Python 2 , you've to install Python3 plugin to use Python 3.

Visit Official Website : <https://qpython.org>

Download App From : [Play Store](https://play.google.com/store/apps/details?id=org.qpython.qpy)




## #2 PyDroid 3

**PyDroid** is less known python IDE for Android and is also *My Favourite* . I like it because of it's simplicity , extra features that QPython fails to provide. With PyDroid you can even create GUIs, games and much more. PyDroid is developed by IIEC

![PyDroid 3 - Screenshot](https://fsgh.palash.tk/imgs/pyd.jpg)

It's specially designed for educational purposes. Most of popular Machine Learning and Data Science python libraries are available, making it ideal for  testing and experimenting *On-The-Go*
> Try It Yourself , You'll Love it.

Download From : [Play Store](https://play.google.com/store/apps/details?id=ru.iiec.pydroid3)

> Next Item is Just For You, If You're a Tech-savvy



## #3 Termux

As The name suggests it's a [terminal](https://en.m.wikipedia.org/wiki/Computer_terminal) emulator for Android so as usual you can use it's package manager `pkg` or `apt` to install python.

![Vim Running On Termux](https://termux.com/files/vim-main_framed.png)

> Unless You're a Experiment Lover, Love to try to new things or a Tech Geek 

Install Termux from : [Play Store](https://play.google.com/store/apps/details?id=com.termux)

To Install Python 3 on Termux type this in Termux :

`pkg install python`

To Install Python 2 on Termux type this in Termux :

`pkg install python2`

To Edit Python Scripts you can use GUI editors like [QuickEdit](https://play.google.com/store/apps/details?id=com.rhmsoft.edit) or you can use terminal based powerful editor [**VIM**](https://en.m.wikipedia.org/wiki/Vim_(text_editor))

To Install [VIM](https://en.m.wikipedia.org/wiki/Vim_(text_editor)) on Termux type this in Termux :

`apt install vim`

Visit Their Official Website : <https://termux.com>

---

So That's It For Now, There're other IDEs and Methods available , but I mentioned only 3 which were capable of running programs offline and were tried by myself

I recommend trying all three and deciding which one you like most. 

---

Thanks For Reading, Let Me Know Your Thoughts in The comments bellow 👇

---
If You Like My Work (My Articles, Stories, Softwares, Researches and many more) Consider [Buying Me A Coffee ☕](https://www.buymeacoffee.com/palash) 🤗