yum groupinstall "Development Tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel libffi-devel
ls
cd /opt/
ls
mkdir python
cd python/
ls
wget https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tgz
tar -xzf Python-3.8.6.tgz
cd Python-3.8.6
./configure --enable-optimizations
make altinstall
ls
python3.8 --version
python --version
pwd
pip
pip3
ls
ls pip*
ls Tools/
ls
pip
ls
python3.8 -m ensurepip --default-pip
which python3.8
ln -s $(which python3.8) $(dirname $(which python3.8))/pip3.8
ls -ltrh /usr/local/bin/pip3.8
ls -ltrh /usr/local/bin/
pip3.8
python3.8 -m venv python38env
ls
ls python38env/
ls python38env/bin/
source python38env/bin/activate
标签:python,devel,编译,python38env,ls,pip,python3.8,亲测 From: https://blog.51cto.com/u_14316134/11963870