Linux下安装Python3.8


Linux下安装Python3.8

Published on April 30, 2022 by Cla Blog

linux python tech

0 min READ

以下是安装脚本

sudo mkdir py3
cd py3
sudo wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
tar -xvzf Python-3.8.1.tgz
cd Python-3.8.1
sudo mkdir -p /usr/local/python3
./configure --prefix=/usr/local/python3
make
sudo make install

rm -rf /usr/bin/python3
ln -s /usr/local/python3/bin/python3.8 /usr/bin/python3
sudo rm /usr/bin/lsb_release

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