It seems that minicondais what you need. using it, you can manage multiple python environments with different versions of python.
to install miniconda3 only:
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh -b -p ~/miniconda3
then create a new python3.6 env:
conda create -y -n myproject 'python>3.6'
enter new python3.6 env
source activate myproject
python3
minicondacan also install python packages, including package packages and compiled packages. You can also copy envs from one machine to another. I urge you to study it more deeply.
source
share