check all installed python versions code example Example: python version command import sys print(sys.version)