最直白的centos8安装python3.8
yum install -y update
安装 gcc和make插件:
yum install gcc gcc-c++
yum -y install gcc automake autoconf libtool make
yum groupinstall -y 'Development Tools'
yum install -y gcc openssl-devel bzip2-devel libffi-devel
下载和编译python3.8.1
(1)在官方网站下载最新版本python3.8.1
wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
tar -zxvf Python-3.8.1.tgz
mkdir /usr/local/python3
cd Python-3.8.1
./configure --prefix=/usr/local/python3 --enable-optimizations --with-ssl
make && make install
ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3
pip3 install --upgrade pip
最直白的centos8安装python3.8
最新推荐文章于 2024-06-18 11:22:41 发布