Python is one of the most popular programming languages used for scripting, automation, web development, cybersecurity tools, and many other tasks. You can easily install Python in Termux and start running Python scripts directly from your Android device. Here are the commands to install Python in Termux.
Installation Commands
Update and upgrade termux packages:
pkg update && pkg upgrade -yInstall Python:
pkg install python -yCheck Python version:
python --versionCheck Pip version:
pip --versionUsage Commands
Run Python interpreter:
pythonCreate a Python file:
nano test.pyExample Python code:
print("Hello World")Run Python file:
python test.pyInstall Python package using pip:
pip install requestsList installed packages:
pip list
