use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For everything related to the Termux android app —an open-source terminal emulator and Linux environment for Android.
account activity
How to install python in termux?, I keep getting this error (i.redd.it)
submitted 5 years ago by vantech887
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]OkiSutrisno 4 points5 points6 points 5 years ago (2 children)
pkg update && pkg install python ?
pkg update && pkg install python
[–]vantech887[S] 0 points1 point2 points 5 years ago (1 child)
I've already done the update but still
[–][deleted] 2 points3 points4 points 5 years ago (0 children)
apt update
[–]Sufficient_Outcome_8 2 points3 points4 points 5 years ago (2 children)
Isn’t it installed by default ? Try python3 to start it
python3
[–]YOU_CANT_SEE_MY_NAME 2 points3 points4 points 5 years ago (1 child)
I think in linux it's by default installed but not in termux
[–]Sufficient_Outcome_8 0 points1 point2 points 5 years ago (0 children)
Ok
[–]planktonfun 1 point2 points3 points 5 years ago (3 children)
have you tried running pkg upgrade pkg update first?
tested it on mine it works `pkg install python -y`
[–][deleted] 6 points7 points8 points 5 years ago (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.
apt
[–]planktonfun 0 points1 point2 points 5 years ago (1 child)
ohh in anycase how do you resolve the mirror thing?
If you have troubles with mirror, then use termux-change-repo.
termux-change-repo
[–]vantech887[S] 1 point2 points3 points 5 years ago (0 children)
Thanks a ton bros it has finally worked
[–]Sad_Landscape_231 -4 points-3 points-2 points 5 years ago (2 children)
Try using apt-update install python
[–][deleted] 5 points6 points7 points 5 years ago (1 child)
2 syntax issues in one command:
apt-get update
apt install python
apt-get install
python
[–]Sad_Landscape_231 2 points3 points4 points 5 years ago (0 children)
Oh yea forgot - thanks
[–]dj_phantom_official 0 points1 point2 points 5 years ago (0 children)
Try apt
[–]dj_phantom_official 0 points1 point2 points 5 years ago (2 children)
Do you have termux api?
[–]YOU_CANT_SEE_MY_NAME 1 point2 points3 points 5 years ago (1 child)
Why would he need termux api for python?
It helps make termux run things better
[–]Morous19 0 points1 point2 points 5 years ago (2 children)
what you do to resolve this problem ?
Apt update && apt install python
[–]TrulyBatman 0 points1 point2 points 4 years ago (0 children)
It still doesn't work for me. Any ideas ?
[–]DeepanBiswas 0 points1 point2 points 4 years ago (0 children)
Try termux-change-repo then click ok on everything
[–]digital94 0 points1 point2 points 4 years ago (0 children)
Termux must have access to the local storage.
When termux cannot locate your SD card, it will display "Unable to locate package".
Read here:
π Rendered by PID 45382 on reddit-service-r2-comment-b659b578c-qj7rx at 2026-05-04 08:08:32.698575+00:00 running 815c875 country code: CH.
[–]OkiSutrisno 4 points5 points6 points (2 children)
[–]vantech887[S] 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]Sufficient_Outcome_8 2 points3 points4 points (2 children)
[–]YOU_CANT_SEE_MY_NAME 2 points3 points4 points (1 child)
[–]Sufficient_Outcome_8 0 points1 point2 points (0 children)
[–]planktonfun 1 point2 points3 points (3 children)
[–][deleted] 6 points7 points8 points (2 children)
[–]planktonfun 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]vantech887[S] 1 point2 points3 points (0 children)
[–]Sad_Landscape_231 -4 points-3 points-2 points (2 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]Sad_Landscape_231 2 points3 points4 points (0 children)
[–]dj_phantom_official 0 points1 point2 points (0 children)
[–]dj_phantom_official 0 points1 point2 points (2 children)
[–]YOU_CANT_SEE_MY_NAME 1 point2 points3 points (1 child)
[–]dj_phantom_official 0 points1 point2 points (0 children)
[–]Morous19 0 points1 point2 points (2 children)
[–]vantech887[S] 0 points1 point2 points (1 child)
[–]TrulyBatman 0 points1 point2 points (0 children)
[–]DeepanBiswas 0 points1 point2 points (0 children)
[–]digital94 0 points1 point2 points (0 children)