I will accept two possible solutions:
- Both versions are installed side by side.
- 3.7.5 is removed and 3.6.5 is then installed.
I will accept two possible solutions:
For this you can use pyenv
.
https://realpython.com/intro-to-pyenv/
If you have installed all packages and dependencies you can install different version like this:
pyenv install -v 3.6.5
You can install another python version side by side.
You can see https://www.python.org/ftp/python/ to get a link of your desired version of python. Then download and install.
Here are possible steps
sudo apt install build-essential libssl-dev openssl
to install dependencies need for compilingwget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
to downlaodtar -xf Python-3.6.5.tgz
to extractcd Python-3.6.5
to get into code directory./configure
to configure and generate the necessary build filesmake
to compilesudo make install
to finally installNew version is installed and available to use.