Skip to content

CentOS 7 Python 安装教程

Published: at 09:06 AMSuggest Changes

对应版本文件

去这找一下对应版本文件

https://www.python.org/downloads/source/

下载及安装

安装依赖

yum install gcc openssl-devel bzip2-devel libffi-devel -y

下载并解压文件

curl -O https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
tar -xzf Python-3.8.1.tgz
cd Python-3.8.1/
./configure --enable-optimizations
make altinstall
python3.8

Previous Post
CentOS 7 安装 Conda
Next Post
Vue3 监听 Prop 变化