Check Python Version On Linux ((new)) May 2026
python --version For more details (build date, compiler, etc.):
python2 --version or
1. Check Python 3 Version Most modern Linux distributions come with Python 3 pre-installed. 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. python --version For more details (build date, compiler, etc
python3 -c "import sys; print(sys.version)" ls /usr/bin/python* or check python version on linux
python3 -VV or