macOS
$ brew install python3
$ brew link python@3.8
Ubuntu
Install ppa
This PPA contains more recent Python versions packaged for Ubuntu. Install ppa by running the following command.
$ sudo add-apt-repository ppa:deadsnakes/ppa
Update packeges
Now, update your packages by running the following command.
$ sudo apt-get update
安装Python3.8
$ sudo apt-get install python3.8
Add python3.6 & python3.7 to update-alternatives
$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
Update python3 to point to python3.8
$ sudo update-alternatives --config python3
Enter 2 for python3.8
Test the version of python
$ python3 -V
Python 3.8.0
Reference
FEATURED TAGS
algorithm
algorithmproblem
architecturalpattern
architecture
aws
c#
cachesystem
codis
compile
concurrentcontrol
database
dataformat
datastructure
debug
design
designpattern
distributedsystem
django
docker
domain
engineering
freebsd
git
golang
grafana
hackintosh
hadoop
hardware
hexo
http
hugo
ios
iot
java
javaee
javascript
kafka
kubernetes
linux
linuxcommand
linuxio
lock
macos
markdown
microservices
mysql
nas
network
networkprogramming
nginx
node.js
npm
oop
openwrt
operatingsystem
padavan
performance
programming
prometheus
protobuf
python
redis
router
security
shell
software testing
spring
sql
systemdesign
truenas
ubuntu
vmware
vpn
windows
wmware
wordpress
xml
zookeeper