├── python2.sh ├── python3.sh ├── pythonLATEST.sh ├── test.sh ├── pythonANY.sh ├── .github └── workflows │ └── test.yml └── README.md /python2.sh: -------------------------------------------------------------------------------- 1 | apt-get install python2 --assume-yes 2 | termux-setup-storage 3 | cd storage 4 | cd shared 5 | mkdir python-termux 6 | cd ~ 7 | clear 8 | echo "installation of python 2 finished" 9 | echo "script by Exanoff12" 10 | -------------------------------------------------------------------------------- /python3.sh: -------------------------------------------------------------------------------- 1 | apt-get install python3 --assume-yes 2 | termux-setup-storage 3 | cd storage 4 | cd shared 5 | mkdir python-termux 6 | cd ~ 7 | clear 8 | echo "installation of python 3 finished" 9 | echo "script by Exanoff12" 10 | -------------------------------------------------------------------------------- /pythonLATEST.sh: -------------------------------------------------------------------------------- 1 | apt-get install python --assume-yes 2 | termux-setup-storage 3 | cd storage 4 | cd shared 5 | mkdir python-termux 6 | cd ~ 7 | clear 8 | echo "installation of python latest finished" 9 | echo "script by Exanoff12" 10 | -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- 1 | pyver=3.9 2 | sudo apt update 3 | sudo apt-get install python$pyver --assume-yes 4 | mkdir python-termux 5 | ls 6 | echo python$pyver 7 | python --version 8 | echo "installation of python $pyver finished" 9 | echo "script by Exanoff12" 10 | -------------------------------------------------------------------------------- /pythonANY.sh: -------------------------------------------------------------------------------- 1 | echo "enter python version: " 2 | read pyver 3 | apt-get install python$pyver --assume-yes 4 | termux-setup-storage 5 | cd storage 6 | cd shared 7 | mkdir python-termux 8 | cd ~ 9 | clear 10 | echo "installation of python $pyver finished" 11 | echo "script by Exanoff12" 12 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | # This is a basic workflow to help you get started with Actions 2 | 3 | name: test 4 | 5 | # Controls when the workflow will run 6 | on: 7 | # Triggers the workflow on push or pull request events but only for the main branch 8 | 9 | 10 | # Allows you to run this workflow manually from the Actions tab 11 | workflow_dispatch: 12 | 13 | 14 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel 15 | jobs: 16 | # This workflow contains a single job called "build" 17 | build: 18 | # The type of runner that the job will run on 19 | runs-on: ubuntu-latest 20 | 21 | # Steps represent a sequence of tasks that will be executed as part of the job 22 | steps: 23 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it 24 | - uses: actions/checkout@v2 25 | 26 | # Runs a single command using the runners shell 27 | - name: test 28 | run: echo test 29 | 30 | # Runs a set of commands using the runners shell 31 | - name: finish 32 | run: | 33 | chmod +x * 34 | ./test.sh 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # install and use python in termux with a single line of code. 2 | ## **DON'T USE (need to fix)** 3 | 4 | ## tutorial 5 | **_copy and paste the code to install. Warning!!!! you must have F-Droid version of termux in order to work_** 6 | 7 | ### code for python latest: 8 | 9 | > `apt update && apt upgrade --assume-yes && apt-get install wget --assume-yes && wget -O https://raw.githubusercontent.com/Exanoff12/python_in-termux-onescript/main/pythonLATEST.sh pythonLATEST.sh && chmod +x pythonLATEST.sh && bash pythonLATEST.sh` 10 | 11 | ### code for python 3 : 12 | 13 | > `apt update && apt upgrade --assume-yes && apt-get install wget --assume-yes && wget -O https://raw.githubusercontent.com/Exanoff12/python_in-termux-onescript/main/python3.sh python3.sh && chmod +x python3.sh && bash python3.sh` 14 | 15 | ### code for python 2 : 16 | 17 | > `apt update && apt upgrade --assume-yes && apt-get install wget --assume-yes && wget -O https://raw.githubusercontent.com/Exanoff12/python_in-termux-onescript/main/python2.sh python2.sh && chmod +x python2.sh && bash python2.sh` 18 | 19 | ### code for any version of python (beta) : 20 | 21 | > `apt update && apt upgrade --assume-yes && apt-get install wget --assume-yes && wget -O https://raw.githubusercontent.com/Exanoff12/python_in-termux-onescript/main/pythonANY.sh pythonANY.sh && chmod +x pythonANY.sh && bash pythonANY.sh` 22 | --------------------------------------------------------------------------------