Upgradation to Python 3.7

86 views Asked by At

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?

2

There are 2 answers

8
0buz On

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.

0
Ritwiz Sinha On

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