Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install specific python version (Termux)

Tags:

python

termux

I am trying to install a specific version of python using termux (python 3.5) but it is downloading the latest version (Python 3.7.2-1) instead. Is there any way to specify what version to install?

The command I am using is very straightforward, but I haven't found any way to specify version anywhere

pkg install python
like image 203
SaltyHelpVampire Avatar asked May 23 '26 19:05

SaltyHelpVampire


1 Answers

To do what you intend...you can use the following command..

  1. First Make Sure that the package version you need to install exists... Use:
apt-cache madison [packagename]
  1. If the package version you're trying to install exists, simply run:
apt-get install [packagename]=[DesiredVersion]
like image 119
Jaynam Modi Avatar answered May 26 '26 09:05

Jaynam Modi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!