1. 安装software-properties-common
sudo apt-get install software-properties-common
2. 下载python3.7
sudo add-apt-repository ppa:jonathonf/python-3.7
sudo apt-get update
sudo apt-get install python3.7
3. 修改系统默认python版本为3.7
cd /usr/bin
sudo rm python
sudo ln -s python3.7m python
4. 升级pip版本
sudo pip3 install --upgrade pip
sudo apt-get install python3-pip
sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
搞定,收工!
此处评论已关闭