跳转至

python-cmd

python38 on amazon linux

yum

sudo yum install -y amazon-linux-extras
amazon-linux-extras | grep -i python
sudo amazon-linux-extras enable python3.8
sudo yum install -y python3.8 python38-devel

compile

Install Python 3.8 on CentOS 7 / CentOS 8 | ComputingForGeeks

./configure --enable-optimizations --with-ensurepip=install
make altinstall

venv

python3 -m venv venv
source ./venv/bin/activate
pip install --upgrade pip

http.server

unencrypted traffic

python -m http.server -d output/html 80
python3 -m http.server 80 &
disown

refer