gpt4 book ai didi

python - 在 Raspbian Buster 上将 Python 3.7 降级到 3.5

转载 作者:行者123 更新时间:2023-12-05 08:07:10 25 4
gpt4 key购买 nike

因此,Buster 似乎默认加载了 2.7 版和替代的 3.7 版 Python。但是,我将这个 Raspberry Pi 3 B+ 用于仅与 Python 3.5 兼容的应用程序。如何将 Python 3.5 作为默认版本运行或从 Buster 中完全删除 3.7?

最佳答案

我真的相信你可以从源代码库安装 python3.5。

如果你想安装 python 3.5.4 :

sudo apt-get install python3.5

如果你想安装 python 3.5.3 (Debian Stretch):

以 root 身份编辑 /etc/apt/source.list 并添加以下 repos,

deb http://mirrordirector.raspbian.org/raspbian/stretch main contrib 非免费

rpi 固件 deb http://archive.raspberrypi.org/debian/stretch main ui

然后使用以下命令从目标仓库安装特定的包版本:

sudo apt-get install python3.5 -t stretch

如果想安装 pip3.5(我猜你需要):

wget https://bootstrap.pypa.io/get-pip.py

python3.5 ./get-pip.py

关于python - 在 Raspbian Buster 上将 Python 3.7 降级到 3.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56814302/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com