Debian8 自带 Python 3.4,但我需要安装 3.6 版本。我想知道这可能吗?因为我失败了很多次。
我已经尝试过 (如何安装 Python 3.6 ) 中提到的选项,但是对于make -j8步骤,我收到了大量以下错误:
libpython3.6m.alibpython3.6m.a((descrobject.ocompile.o)):: InIn functionfunction `getset_get_doc':
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_indirect_call_profiler_v2'
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_indirect_call_callee'
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_time_profiler'
libpython3.6m.a(descrobject.o): In function `member_get_doc':
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_indirect_call_profiler_v2'
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_indirect_call_callee'
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_time_profiler'
Run Code Online (Sandbox Code Playgroud)
等等...
我不想使用“ http://ftp.de.debian.org/debian testing main”,因为它包含实验包,我不确定这是否是用于生产的正确版本。
我也试过用 Debian 9 做同样的事情,但遇到了类似的问题。