gpt4 book ai didi

python - 手动安装的 Python 2.7 的未知屏幕输出

转载 作者:太空狗 更新时间:2023-10-29 20:54:53 26 4
gpt4 key购买 nike

我今天安装了 Python 2.7,使用:

./configure --prefix=/home/zhanwu/local --enable-shared --enable-profiling --with-pydebug
make install

然后我在每次函数调用后不断在屏幕上看到类似“[37745 refs]”的内容:

[zhanwu@cluster ~]$ ~/local/bin/python
Python 2.7.1 (r271:86832, Jun 16 2011, 17:45:05)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
[37745 refs]
>>> print 'test'
test
[37745 refs]
>>> sys.exit()
[18048 refs]
[zhanwu@cluster ~]$

这些数字是什么意思?这里有什么问题吗?我可以摆脱它们吗?

uname - 结果:

[zhanwu@cluster ~]$ uname -a
Linux cluster.xxx.xxx.xxx 2.6.18-128.1.14.el5 #1 SMP Wed Jun 17 06:38:05 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

最佳答案

您获得这些是因为您使用 --with-pydebug 配置了构建。它们表示 Python 当前跟踪的引用数。要摆脱它们,请在没有 --with-pydebug 的情况下进行配置。

关于python - 手动安装的 Python 2.7 的未知屏幕输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6375120/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com