最直白的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
轉載至:englishcode.blog.csdn.net/article/details/106896513