-2

I have Ubuntu 19.04 OS and I needed python 3.6 version so I somehow managed to get python3.6 on my device without removing python3.7 but now I would like to revert back to using python3.7. Can anyone suggest how to do it?

Subhang V
  • 89
  • 7
  • "Somehow"? I suppose those details are important. Also it sounds more like a question for AskUbuntu. – a_guest Mar 24 '20 at 15:36
  • Does this answer your question? [upgrading default python version or install another python version in Linux](https://stackoverflow.com/questions/18957836/upgrading-default-python-version-or-install-another-python-version-in-linux) – Vasco Cansado Carvalho Mar 24 '20 at 15:36
  • There is a similar question here: [post](https://stackoverflow.com/questions/18957836/upgrading-default-python-version-or-install-another-python-version-in-linux) – Vasco Cansado Carvalho Mar 24 '20 at 15:37

2 Answers2

1

If you've got multiple version of Python installed, you can choose which one to use as default in update-alternatives:

sudo update-alternatives --config python3

, then follow the prompt instructions.

0buz
  • 3,443
  • 2
  • 8
  • 29
1

Try using virtual environments, namely anaconda for these kinds of things. I am not aware of any other methods. Anaconda basically creates a virtual environment in which you can specify the version of all packages including python itself