Python Version On Linux: Check
python3 -V Python 3.10.12 2. Check Python 2 Version (if installed) Some older systems or legacy applications still use Python 2.
python3 -c "import sys; print(sys.version)" ls /usr/bin/python* or check python version on linux
python --version Python 2.7.18 3. Check Default Python Version On some systems, python may point to Python 2 or Python 3. python3 -V Python 3
python3 -VV or
python --version For more details (build date, compiler, etc.): etc.): python2 --version or
python2 --version or