【python小随笔】编译3.8.2版本

下载完成后,解压缩压缩的存档:

1:     tar -xf Python-3.8.2.tgz

2:     cd Python-3.8.0

3:    ./configure --enable-optimizations4:    sudo apt-get install openssl

5:    sudo apt-get install libssl-dev

6:    ./configure --with-ssl


# 后面两行为编译命令

# 可能需要重新安装的命令:
sudo apt-get install libffi-dev
?:   make -j 8

?:   sudo make altinstall


12: 编译后,安装依赖报的名为:python3.8 -m pip install 依赖包名

终端运行: python3.8 。。。。


如果出现: db type is dbm.gnu, but the module is not available
安装 : sudo apt-get install python3.8-gdbm



原文地址:https://www.cnblogs.com/wanghong1994/p/12661438.html