How to install python in termux

Learn How to Install and run python files in termux

In this tutorial, you will learn how to install python in termux and use python files on your android

What is Python?

Python is a programming language used to build software, websites, data analysis and so on. and it is one of the favourite programming languages for hackers.

python in termux

Install python on termux

Follow these steps to install python in termux. We will use nano to edit python files.

1. Download and install Termux from F-Droid

2. in termux type apt update && apt upgrade -y

3. Now type pkg install python

4. Then type pkg install nano

5. type python --version to check the version of python

install python in termux

How to run python in termux

Create a file with .py extension, then execute python

we will use nano to create a file

in the termux type


then write in the editor

print("Hello World")


Now Save the file by CTRL + X or Volume down + X

Now Run the file by typing


Run python

Now you will notice Hello World is printed.

Hi, I'm Basudev
A Professional Blogger & Hacker Interested in Infosec, Web Development, Programming

Post a Comment

Comments will be reviewed before publishing