Reference resources :
docker Internal upgrade Python 3.5 To 3.6
Delete python3.6 Of pip
apt-get remove -y python3-pip
apt-get autoremove -y
install python3.8 edition
apt-get install -y python3.8
install python3.8 Version of pip
apt-get install -y python3-pip
rm /usr/bin/python3
ln -s /usr/bin/python3.8 /usr/bin/python3
python3.8 -m pip install --upgrade pip
pip3 install psutil pytest pytest-html pytest-timeout pytest-httpserver pylint pytest-asyncio autopep8 boto3 pytest-repeat pyyaml
View version
python3 -V
pip -V
#pip3 -V
原文轉載自「劉悅的技術博客」https://v3u.cn/a