在 Centos7 Raspberry Pi 上安装 Python3

Installing Python3 on Centos7 Raspberry Pi

我在 pi 上的 centos7 上安装 python3 时遇到问题。
我从这里得到了我的 centos 版本: https://wiki.centos.org/SpecialInterestGroup/AltArch/Arm32/RaspberryPi3

而且我似乎无法安装正确的存储库来使用 yum python3。我在线尝试了所有教程,其中 none 有效。知道如何在 pi 上执行此操作吗?

您实际上可以毫无问题地安装 python 3.4。

在终端输入:

cat > /etc/yum.repos.d/epel.repo << EOF

然后输入以下几行:

[epel]
name=Epel rebuild for armhfp
baseurl=https://armv7.dev.centos.org/repodir/epel-pass-1/
enabled=1
gpgcheck=0

EOF

然后,您需要安装 epel-release 其中包含 python34:

yum install epel-release

之后,您就可以安装 Python 3.4.

yum install python34

获取点子,

yum install python34-pip