how to check which python version is installed in environment ubuntu code example Example: check python version kali linux $ python2 --version