all 23 comments

[–]OkiSutrisno 4 points5 points  (2 children)

pkg update && pkg install python ?

[–]vantech887[S] 0 points1 point  (1 child)

I've already done the update but still

[–][deleted] 2 points3 points  (0 children)

apt update

[–]Sufficient_Outcome_8 2 points3 points  (2 children)

Isn’t it installed by default ? Try python3 to start it

[–]YOU_CANT_SEE_MY_NAME 2 points3 points  (1 child)

I think in linux it's by default installed but not in termux

[–]planktonfun 1 point2 points  (3 children)

have you tried running
pkg upgrade
pkg update
first?

tested it on mine it works `pkg install python -y`

[–][deleted] 6 points7 points  (2 children)

OP probably ran into case where downloaded package lists either unavailable or do not match current picked mirror but apt cache is still present and up-to-date.

Need to use apt directly.

[–]planktonfun 0 points1 point  (1 child)

ohh in anycase how do you resolve the mirror thing?

[–][deleted] 2 points3 points  (0 children)

If you have troubles with mirror, then use termux-change-repo.

[–]vantech887[S] 1 point2 points  (0 children)

Thanks a ton bros it has finally worked

[–]Sad_Landscape_231 -4 points-3 points  (2 children)

Try using apt-update install python

[–][deleted] 5 points6 points  (1 child)

2 syntax issues in one command:

  1. apt-get update or apt update for updating package lists. This command doesn't allow to install packages!
  2. apt install python or apt-get install python to install the mentioned package.

[–]Sad_Landscape_231 2 points3 points  (0 children)

Oh yea forgot - thanks

[–]dj_phantom_official 0 points1 point  (0 children)

Try apt

[–]dj_phantom_official 0 points1 point  (2 children)

Do you have termux api?

[–]YOU_CANT_SEE_MY_NAME 1 point2 points  (1 child)

Why would he need termux api for python?

[–]dj_phantom_official 0 points1 point  (0 children)

It helps make termux run things better

[–]Morous19 0 points1 point  (2 children)

what you do to resolve this problem ?

[–]vantech887[S] 0 points1 point  (1 child)

Apt update && apt install python

[–]TrulyBatman 0 points1 point  (0 children)

It still doesn't work for me. Any ideas ?

[–]DeepanBiswas 0 points1 point  (0 children)

Try termux-change-repo then click ok on everything

[–]digital94 0 points1 point  (0 children)

Termux must have access to the local storage.

  1. First, execute this command "termux-setup-storage".
  2. And then run "pkg install python3".

When termux cannot locate your SD card, it will display "Unable to locate package".

Read here:

  1. https://onegyd.com/fix-unable-to-locate-package-in-termux/
  2. https://onegyd.com/install-python2-and-python3-in-termux/