1,安装python3
# apt-get install python3.6 -y
# which python3
/usr/bin/python3
# python3 --version
Python 3.6.9
2,安装pip3
# apt install python3-pip -y
# pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
参考:
- Installing Python 3 on Linux