系统:Ubuntu 20.04 LTS
背景:系统仅预装python 3.8,以下将自行安装python 2.7。
1. 安装python2.7
- 下载python2.7 源文件,解压,进入目录;
./configure --enable-unicode=ucs4
make -j
sudo make install
文件: https://www.python.org/downloads/release/python-2718/
参考:https://eli.thegreenplace.net/2011/10/10/installing-python-2-7-on-ubuntu
https://passingcuriosity.com/2015/installing-python-from-source/
2. 安装setuptools
wget https://bootstrap.py