Check Python Version On Linux [better] -

python --version For more details (build date, compiler, etc.):

python3 --version or

python3 -VV or

1. Check Python 3 Version Most modern Linux distributions come with Python 3 pre-installed. check python version on linux

python3 -V Python 3.10.12 2. Check Python 2 Version (if installed) Some older systems or legacy applications still use Python 2. python --version For more details (build date, compiler, etc

python --version Python 2.7.18 3. Check Default Python Version On some systems, python may point to Python 2 or Python 3. check python version on linux

python2 --version or