亦桉小站

CentOS 7.xx 安装 Python3.8.2

连接上你的服务器

下载程序包

官网下载:Python 3.8.2

上传服务器

使用工具或者wget命令

wget https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tgz

解压压缩包

安装

cd Python-3.8.2
./configure --prefix=/usr/local/python3
make && make install

建立软连接

ln -s /usr/local/python3/bin/python3.8 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3.8 /usr/bin/pip3

验证

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »