Python Version On Linux [best] — Check

python3 -c "import sys; print(sys.version)" ls /usr/bin/python* or

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

python --version For more details (build date, compiler, etc.): python3 -c "import sys; print(sys

python2 --version or