gdb see python version code example Example 1: python print version import sys print(sys.version) Example 2: check python version kali linux $ python2 --version