Debian12 编译Python 3.8.19步骤
1.apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev liblzma-dev
2.curl -O https://www.python.org/ftp/python/3.8.19/Python-3.8.19.tar.xz
3.tar -xf Python-3.8.19.tar.xz
4.cd Python-3.8.19
./configure --enable-optimizations --enable-loadable-sqlite-extensions
5.make -j 4
6.make install 或者 make altinstall
7.python3 --version
 
 
Back to Top