At this stage we are ready to install Python 3. To do so execute the following command on your CentOS 7 system's terminal:
$ sudo yum install python33
Run applications under Python 3
The Python 2 is still your default shell. However, to run application under Python 3 you first need to enter the SCL shell with Python 3 installation. The following command will do just that:
$ scl enable python33 bash
Next, check your Python version:
$ python --version
Python 3.3.2
Now you are ready to start any of your applications from SCL shell using Python 3 as a default python interpreter.
CentOS 7 with Python 3
ARE YOU LOOKING FOR A LINUX JOB? Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
DO YOU NEED ADDITIONAL HELP? Get extra help by visiting our LINUX FORUM or simply use comments below.