The following command will list the versions of Python installed in the computer. It won’t display Python versions installed outside /usr/bin:

$ ls -l /usr/bin/python*