I just started setting up a centos server today and noticed that the default version of python on centos is set to 2.6.6. I want to use python 2.7 instead. I googled around and found that 2.6.6 is used by system tools such as YUM so I should not tamper with it. Then I opened up a terminal on my mac and found that I had python 2.6.8 and 2.7.5 and 3.3.3 installed. Sorry for the long story. In short I just want to know how to lookup all the version of python installed on centos so I don't accidentally install it twice.
COMMAND: python --version && python3 --version
OUTPUT:

Python 2.7.10 
  Python 3.7.1

ALIAS COMMAND: pyver
OUTPUT:

Python 2.7.10 
  Python 3.7.1

You can make an alias like "pyver" in your .bashrc file or else using a text accelerator like AText maybe.
How to check all versions of python installed on osx and centos