ubuntu20.04下源码编译python 3.12
需要注意的地方
1.安装依赖:https://devguide.python.org/getting-started/setup-building/#build-dependencies
sudo apt-get install build-essential gdb lcov pkg-config \ libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \ libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \ lzma lzma-dev tk-dev uuid-dev zlib1g-dev
2.安装依赖后需要重新运行 ./configure
清风明月入怀抱,猿鹤听我再抚琴