0

I will accept two possible solutions:

  1. Both versions are installed side by side.
  2. 3.7.5 is removed and 3.6.5 is then installed.

2 Answers2

1

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
René Höhle
  • 26,716
  • 22
  • 73
  • 82
0

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

  1. Run sudo apt install build-essential libssl-dev openssl to install dependencies need for compiling
  2. Run wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz to downlaod
  3. Run tar -xf Python-3.6.5.tgz to extract
  4. Run cd Python-3.6.5 to get into code directory
  5. Run ./configure to configure and generate the necessary build files
  6. Run make to compile
  7. Run sudo make install to finally install

New version is installed and available to use.

Alok
  • 7,734
  • 8
  • 55
  • 100