'How to install specific python version (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


Solution 1:[1]

Not an easy way, but you can download source of the specific version and build it yourself. This works for me.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Krutoy 4el