80 views

Python 编译安装

验证环境: Ubuntu 20.04

1.安装依赖

sudo apt install -y libssl-dev libffi-dev libbz2-dev git build-essential
# tcl 8.6.11

git clone https://github.com/tcltk/tcl --depth=1 --branch=core-8-6-11

cd tcl/unix

./configure

sudo make install -j8
# tk 8.6.11

git clone https://github.com/tcltk/tk --depth=1 --branch=core-8-6-11

cd tk/unix

./configure

sudo make install -j8

2.安装 Python

# Python 3.8.11

git clone https://github.com/python/cpython --depth=1 --branch=v3.8.11

./configure

sudo make install -j8
发布日期:
分类:开发

发表评论