如何在 AWS EC2 实例上安装 Python 3? [英] How do I install Python 3 on an AWS EC2 instance?

查看:51
本文介绍了如何在 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.

我已经用谷歌搜索了,我找不到其他有这个问题的人,所以我在这里问.我必须手动下载和安装吗?

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆