pyenv不会构建新的python版本(挂起)

2024-09-21 03:28:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我按照tutorial from Northwestern安装pyenv,命令似乎可以工作。但当我跑的时候

pyenv install 3.7.0

(或其他版本)它只是挂起。我得到:

^{pr2}$

{cd1>运行}

/tmp/python-build.numbers.number ~/Path
/tmp/python-build.numbers.number/Python-3.7.0 /tmp/python-build.numbers.number ~/path

直到我杀了这个装置。那么日志文件有

$ tail -n 20 /tmp/python-build.numbers.log
checking for ieeefp.h... no
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking process.h usability... no
checking process.h presence... no
checking for process.h... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking shadow.h usability... %   

在另一个构建版本上进行测试,所有内容看起来都一样日志文件的尾部看起来不同

checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for --with-pydebug... no
checking for --with-assertions... no
checking for --enable-optimizations... no
checking for --with-lto... no
checking target system type... x86_64-pc-linux-gnu
checking for -llvm-profdata... no
checking for llvm-profdata... ''
checking for -Wextra... yes
checking whether gcc accepts and needs -fno-strict-aliasing... no
checking if we can turn off gcc unused result warning... yes
checking if we can turn off gcc unused parameter warning... yes
checking if we can turn off gcc missing field initializers warning... yes
checking if we can turn off gcc invalid function cast warning... no
checking if we can turn on gcc mixed sign comparison warning... yes
checking if we can turn on gcc unreachable code warning... no
checking if we can turn on gcc strict-prototypes warning... no
checking if we can make implicit function declaration an error in gcc... yes
checking whether pthreads are available without options... %  

也许只是花了那么长时间,但我把这两个都运行了超过15个小时,所以我想可能是出了什么问题。我找不到其他人遇到这个问题的好帖子。有什么建议吗?在

$ uname -a
Linux foo 4.15.0-47-generic #50~16.04.1-Ubuntu SMP Fri Mar 15 16:06:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

不知道会有什么不同,但我在运行zsh。在

编辑:也尝试过bash。将导出函数放入~/.bash_profile~/.bashrc中,但没有成功。我不认为这些会是错误的,因为我可以说这个程序很好,这就是所有这些输出正在做的,但是我不明白两个评论者试图通过链接不同的文档来提出什么建议。在

编辑2: 以详细模式运行时,在安装行之后我仍然看不到任何内容


Tags: nobuildforifcantmpturnyes
2条回答

您确定您的系统上安装了所有生成DEP吗?如果没有运行以下命令:

sudo apt-get install make build-essential libssl-dev zlib1g-dev libbz2-dev \ libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ xz-utils tk-dev libffi-dev liblzma-dev python-openssl git

删除旧版本: rm -rvf ~/.pyenv/versions/3.7.0

然后再次运行: pyenv install -v 3.7.0

好像有什么虫子。如果我按一下ctrl-C(一次!)它开始建设,并成功运作。将提交错误报告。在

相关问题 更多 >

    热门问题