參考:
docker 內升級Python 3.5 到3.6
刪除python3.6的pip
apt-get remove -y python3-pip
apt-get autoremove -y
安裝python3.8版本
apt-get install -y python3.8
安裝python3.8版本的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
查看版本
python3 -V
pip -V
#pip3 -V