1.下载python3.7.6
网上给出的以下两种下载方式都已失效
apt-get install python3.7
# 或者
wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1rc2.tgz
手动下载
python官方ubuntu python3.7.6
2.安装python3.7.6
tar -zxvf Python-3.7.6.tgz
3. 配置安装位置
./configure
# 或者
./configure --prefix=/usr/local/python3.7.1
4.编译、测试
cd Python-3.7.6
make
make test
5.测试结束,报告有错
== Tests result: FAILURE then FAILURE ==
386 tests OK.
2 tests failed:
test_normalization test_zipfile
28 tests skipped:
test_bz2 test_ctypes test_curses test_dbm_gnu test_dbm_ndbm
test_devpoll test_gzip test_idle test_kqueue test_lzma test_msilib
test_ossaudiodev test_readline test_smtpnet test_sqlite test_ssl
test_startfile test_tcl test_tix test_tk test_ttk_guionly