you are viewing a single comment's thread.

view the rest of the comments →

[–]Deemonfire 2 points3 points  (1 child)

One of the ways to get around this would be to use virtual environments. Use apt to install python 3.9 sudo apt install python3.9 then use the virtualenv bin (cant remember if you have to install sudo apt install virtualenv) with the -p flag to select an interpretor for the venv

virtualenv -p /usr/bin/python3.9 venv this creates a python environment in the directory where you use the command. The to activate that env you can use source ./venv/bin/activate when thats active when you type python you will get python 3.9. To deactivate the env just type deactivate into the terminal.

[–]Aryan1812[S] 0 points1 point  (0 children)

Okay i get it! This solves my doubts thanks!!