具体怎么安装,可以参考:Ubuntu20.04 从源代码编译安装 python3.10

在 ubuntu22.04 上,我已经从源码编译安装了多个 python 了:3.7、3.8、3.9、3.11

╭─pon@amd5700g ~  
╰─➤  cd ~/opt/python/cpython/
╭─pon@amd5700g ~/opt/python/cpython  
╰─➤  ll
   inode Permissions Links Size Blocks User Group Date Modified Name
17728017 drwxrwxr-x      6    -      - pon  pon    2 5月  01:25 python3.7
16261056 drwxrwxr-x      6    -      - pon  pon   14 1月  19:34 python3.8
16275536 drwxrwxr-x      6    -      - pon  pon   14 1月  19:34 python3.9
16663293 drwxrwxr-x      6    -      - pon  pon    5 2月  21:32 python3.11

universe_king
3.4k 声望680 粉丝