0

When I try to install, it says that 2.7 is already installed. I want Python 3. How to install that?

enter image description here

I tried using python3, cannot find package: enter image description here

Neil Dey
  • 449
  • 2
  • 7
  • 18
  • 2
    See [How do I install Python3 on an AWS EC2 instance?](https://stackoverflow.com/questions/27669927/how-do-i-install-python3-on-an-aws-ec2-instance) – dmulter Jul 03 '18 at 21:39

3 Answers3

2

Python 3 is a different package:

sudo yum install python3
ritlew
  • 1,622
  • 11
  • 13
0

Check your RHEL release version using

$lsb_release -a 

Then depending on your OS version follow answers in Installing Python 3 on RHEL for installation

Riya John
  • 474
  • 4
  • 14
0

Here is the one command to install python3 on Amazon linux 2:

$sudo yum install python3 -y

$python3 --version

Python 3.7.6

Pruthvi Chitrala
  • 176
  • 1
  • 3
  • 10