How to use Python v2 and v3 in Termux app on Android : Simple way to use Python without need of rooting

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 

screenshot_20161231-081311

 

2.Now type y if you want to proceed.Otherwise n .

 

3.After successful installation, you can use Python by using this command:

python 

screenshot_20161231-082914

 

 

 

Python v2 installation :

1.Use this command to install python2 :

apt install python2

screenshot_20161231-082740

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.

How to use Termux App for Android : Terminal Emulator and Linux environment

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 screenshot_20161231-080757

 

 

Steps and Instructions :

1.Download Termux app and install it.Open Termux and wait for its complete installation.screenshot_20161231-080835

2.Now, for first time you need to use this command (as shown in screenshot):

 apt update screenshot_20161231-081205

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:

apt list screenshot_20161231-083450

5.To install any package,say python ,use this command:

apt install python screenshot_20161231-081311

 

5.To search any package,say python. Use this command:

apt search python screenshot_20161231-081311

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 Screenshot_20161231-090507.png

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.