如何在AWS EC2实例上安装Python 3? [英] How do I install Python 3 on an AWS EC2 instance?
本文介绍了如何在AWS EC2实例上安装Python 3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在AWS EC2实例上安装python 3.x,并且:
I'm trying to install python 3.x on an AWS EC2 instance and:
sudo yum install python3
不起作用:
No package python3 available.
我在Google周围搜索,找不到其他遇到此问题的人,所以我在这里问。我必须手动下载并安装它吗?
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?
推荐答案
如果您这样做
sudo yum list | grep python3
您会看到,虽然他们没有 python3软件包,但他们确实有 python34软件包或更新版本,例如 python36。安装起来非常简单:
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
这篇关于如何在AWS EC2实例上安装Python 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文