If you want to install python without sudo privileges, then just download a compressed version of python 3, decompress it, run.
I wonder how I can install a python 3.7 virtual environment on a Linux machine that currently has python 2.7? I also do not have sudo privilege.
Installing a python 3.7 virtual environment on a Linux machine with python 2.7