How to Check Python Version in Linux Terminal
Mar 17, 2024
Let’s take a closer look how you can find default python version in Ubuntu. Before installing Python, check weather you have it on your system. Open your terminal and run the following command.
Method 1: Simply you have to run the command python3 --version
python3 - version
Terminal Output:
Method 2: Write this simple command python3
on your terminal and hit the Enter button.
python3
Terminal Output :
Now you have to exit, Use Python built-in function exit()
exit()
You can read full article here