When I try to install, it says that 2.7 is already installed. I want Python 3. How to install that?
Asked
Active
Viewed 2,748 times
0
-
2See [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 Answers
2
Python 3 is a different package:
sudo yum install python3

ritlew
- 1,622
- 11
- 13
-
5it looks like you need a subversion as well... Try `sudo yum install python36` – ritlew Jul 03 '18 at 21:25
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