After a minimal install of centos7, you would notice that your version of Python would be maybe 2.7.5 which may not be compatible with other applications you are actually using. To be updated to the latest version, one of the possibilities is to compile your own Python from Source.
Here are the steps that you can follow to compile your own Python. At the time, I am writing this article the latest version is Python-3.5.0. You can refer to this link for future versions.
1. Download the prerequisites. I would also recommend an update before downloading the prerequisites.
yum update -y && yum install yum-utils make wget
2. To be able to compile your Python, you will need to download some requirements which will facilitate the compilation tasks
3.Download the Python package
4.Untar your Python Package
tar xvzf Python-3.5.0.tgz
5. Get into the Package and fire the following commands
6. If the make process is successful, you can now start the installation with the following command
7.Python-2.7 is usually the default version. You will need to specify your OS to run with the new version.
We now have the python-3.5 installed and ready for use.