centos升级python3.8
技术资讯
2024-08-05 10:01
841
centos升级python3.8
1:安装依赖
sudo yum install gcc openssl-devel bzip2-devel libffi-devel
2:下载Python源代码
wget
3:解压和编译源代码
tar -xf Python-3.8.12.tgz
cd Python-3.8.12
./configure --enable-optimizations
4:验证安装
python3.8 --version
如果输出显示Python 3.8的版本号,则表示安装成功。
5:设置默认版本
sudo rm /usr/bin/python3
sudo ln -s /usr/local/bin/python3.8 /usr/bin/python3
标签:
- centos如何升级到python3.8
- centos升级python3.8
- centos如何升级到python3.8
- centos升级
- python3.8