如何在 termux 上从 github 构建最新的 python 版本

问题描述 投票:0回答:1

我想在我的 termux 上安装最新版本的 python(用于一些测试),但我无法做到。我看了 python 的自述文件,但它不起作用。我搜索了 ai 的帮助,但它也不起作用。我试图了解 termux 如何安装 python,但我做不到。如果有人尝试制作或有想法,请在下面分享。让我们在这里制作一个在 termux 上构建 python 的指南

注意:

pkg install termux
命令安装python3.11.9,我至少需要python3.12

大多数情况下,当我运行

make
命令

时,我会收到此错误
Python/parking_lot.c:129:15: error: call to undeclared function 'sem_clockwait'; 
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 
                                    
129 |         err = sem_clockwait(&sema->platform_sem, CLOCK_MONOTONIC, &ts);

我不太擅长C,我不知道这里发生了什么

python python-3.x build termux termux-linux
1个回答
0
投票

输入 pkg install python -y 在 Termux 中安装最新版本的 Python

© www.soinside.com 2019 - 2024. All rights reserved.