pyenv 安装:3.6.6 BUILD 失败(使用 python-build 2.3.32 的 Linuxmint 21.2)

pyenv installation: 3.6.6 BUILD FAILED (Linuxmint 21.2 using python-build 2.3.32)

提问人:pericle 提问时间:11/13/2023 最后编辑:joanispericle 更新时间:11/14/2023 访问量:22

问:

尝试在 Linux Mint 21.2 上安装 Python 3.6.6 版本失败,并出现此错误

pericle@pericle-mint:~$ pyenv install 3.6.6
Downloading Python-3.6.6.tar.xz...
-> https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz
Installing Python-3.6.6...

BUILD FAILED (Linuxmint 21.2 using python-build 2.3.32)

Inspect or clean up the working tree at /tmp/python-build.20231112214137.4986
Results logged to /tmp/python-build.20231112214137.4986.log

Last 10 log lines:
if test "xupgrade" != "xno"  ; then \
    case upgrade in \
        upgrade) ensurepip="--upgrade" ;; \
        install|*) ensurepip="" ;; \
    esac; \
    LD_LIBRARY_PATH=/tmp/python-build.20231112214137.4986/Python-3.6.6 ./python -E -m ensurepip \
        $ensurepip --root=/ ; \
fi
Segmentation fault (core dumped)
make: *** [Makefile:1103: install] Errore 139

我该如何解决?

python linux-mint

评论

0赞 pericle 11/13/2023
我通过安装 $ sudo apt install clang -y $ CC=clang pyenv install 3.6.9 阅读另一条消息解决了它
1赞 AKX 11/13/2023
为什么还需要 Python 3.6?已经过去了......

答: 暂无答案