Today,I am gonna share how to use Python in Termux app on Android phone without need of rooting . It’s very simple and easy way to use Python. Thanks to the developer of Termux , Fredrik Fornwall.
Python v3 installation :
1.Open Termux app and type this command:
apt install python
2.Now type y if you want to proceed.Otherwise n .
3.After successful installation, you can use Python by using this command:
Python v2 installation :
1.Use this command to install python2 :
apt install python2
2.To run python2, use this command: python2
I hope this post will be useful to them who want to use Python v3 and v2 without need of rooting Android phone.
Thanks : Minakshi
Thanks to my family.
Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically.Additionall packages are available using the APT package manager.
Developer: Fredrik Fornwall
Download link: https://termux.com
Steps and Instructions :
1.Download Termux app and install it.Open Termux and wait for its complete installation.
2.Now, for first time you need to use this command (as shown in screenshot):
3.Now,we can use apt command.To know how to use apt , click on Help in Termux app (Long press in Termux Terminal window will bring menu )
4.To get list of available packages,use this command:
5.To install any package,say python ,use this command:
apt install python
5.To search any package,say python. Use this command:
apt search python
6.To remove/uninstall a package,say python , use this command:
apt remove python
7.To see installed packages, use this command:
apt list –installed
I hope this post will be useful to Android users who want to use Terminal with Linux environment on Android without need of rooting their phone.
Thanks to my family and friends.