1,ubuntu16.04安装python3.6
ubuntu16.04 Python版本最高到3.5,添加高位python需要设置源
# 第一步安装add-apt-repository,添加ppa源
apt-get update
apt-get install python-software-properties
apt-get install apt-file
apt-get install software-properties-common
安装Python3.6
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt update
sudo apt install python3.6
按此,在更新的时候
W: The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repo

在Ubuntu16.04上安装Python3.6时,由于默认源只提供到3.5版本,需添加新源。过程中遇到“Release file not found”的信任问题,通过增加源的可信性得以解决。完整步骤包括添加apt源、安装Python3.6以及后续的pip安装。
最低0.47元/天 解锁文章
5201

被折叠的 条评论
为什么被折叠?



