How do I install Python 3 on an AWS EC2 instance?

I'm trying to install python 3.x on an AWS EC2 instance and:

    sudo yum install python3

doesn't work:

    No package python3 available.

I've googled around and I can't find anyone else who has this problem so I'm asking here. Do I have to manually download and install it?

If you do a

    sudo yum list | grep python3

you will see that while they don't have a "python3" package, they do have a "python34" package. Installing it is as easy as:

    sudo yum install python34


Back to homepage or read more recommendations: