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
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.
I tried to use apt install python and it throws an error no such file found
Use this command to install python:
pkg install python
Mr Murthy,
do not forget the apt update!
Great app. I have been looking for a reasonable installation of Python 2.x on my android 7.1.2 TV box and now I have it.
I see that there is a termux script starter at boot but not sure how to make my script wait one hour and run again and never quit as long as the device is on, nor any idea what to use in the header of the script (like bash or sh)
also noteworthy is that if you install python2 apparently pip is called with “pip2”
You can also use python & python IDE easily in PyDroid3 application. So, you can try it for Python with IDE support
I want to run a code to change my Termux styling but after installing python, it becomes the default program on Termux. Please how can i return back to the original Termux shell so i can change the styling?
and what about python3 please tell me how to install it in termux
Thanks for the guide. Termux is really a wonderful tool to try python3 and python 2 on any android device.
May Allah bless you a lot happiness.
How do I install a specific version of Python like not the latest one(3.9) I want to install 3.8 or 3.7