error showing : unable to locate package python on Termux

Binson Thangjam picture Binson Thangjam · Dec 9, 2020 · Viewed 18.6k times · Source

i am installing python on termux and this error is showing:

$ pkg install python
Checking availability of current mirror: ok
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package python

Answer

Krishna Kanhaiya picture Krishna Kanhaiya · Dec 11, 2020

I think you haven't update repo, look like you have just install termux. Anyway, execute

apt update

and then install any package.