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

posted @ 2023-10-23 14:13  goyier  阅读(418)  评论(0编辑  收藏  举报