ubuntu16.04安装python3.6遇到的问题及解决方案

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1,ubuntu16.04安装python3.6

python安装
add-apt-repository安装

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值