I had a doubt regarding python setup on Linux Distributions.
As usually we have python 3.6 or somethings present by default in Linux Machines on cloud.
So is there any standardized way to set up newer python versions?
Let say i want to install python version 3.11 .
Then once i install using sudo-apt install
i see i do not get the output on
python --version or python -V
But
python3.11 --version gives the output but that kinda defeats the purpose right
Whereis python returns the paths for both python 3.6 and 3.11
but
$PYTHONPATH returns nothing in that case should i set it up and then what would be the path?
I usually always setup virtual env and use the python. But now even from with in the activated env i have to run my scripts by running
python3.11 script.py
But i wanted to know if there is any step i missed should i try to set up the default python like here
Setting Default Pyton?
Any advice on how you usually set up python is appreciated. Just trying to define a standard set of rules for myself.
user25935854 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.