python3 --version or
1. Check Python 3 Version Most modern Linux distributions come with Python 3 pre-installed. check python version on linux
python3 -VV or
python --version Python 2.7.18 3. Check Default Python Version On some systems, python may point to Python 2 or Python 3. python3 --version or 1
python2 --version or
python3 -c "import sys; print(sys.version)" ls /usr/bin/python* or check python version on linux
python --version For more details (build date, compiler, etc.):