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

Jake_Howard picture Jake_Howard · Dec 27, 2014 · Viewed 143.5k times · Source

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?

Answer

TaborKelly picture TaborKelly · Apr 11, 2015

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, or a more recent release, such as "python36". Installing it is as easy as:

sudo yum install python34 python34-pip