<aside> 💡

This step is required only once; if you have already set up Termux using this guide, you may skip this section.

</aside>



Update Termux

pkg update && pkg upgrade

Install Python 3.10

pkg rem python -y
pkg i tur-repo -y
pkg i python3.10 -y
ln -sf /data/data/com.termux/files/usr/bin/python3.10 /data/data/com.termux/files/usr/bin/python3
python3 --version

if it showing python3.10.xx (e.g python 3.10.14) all done.