如何删除分析*。gcda:无法打开python virtualenv builder出错?

2024-05-29 10:12:00 发布

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

jenkins输出中,我得到以下错误。这是个问题还是可以沉默?在

profiling:/opt/Python-3.6.1/Python/structmember.gcda:Cannot open
profiling:/opt/Python-3.6.1/Python/getcompiler.gcda:Cannot open
profiling:/opt/Python-3.6.1/Objects/odictobject.gcda:Cannot open
profiling:/opt/Python-3.6.1/Objects/enumobject.gcda:Cannot open
profiling:/opt/Python-3.6.1/Objects/descrobject.gcda:Cannot open
profiling:/opt/Python-3.6.1/Objects/cellobject.gcda:Cannot open
profiling:/opt/Python-3.6.1/Objects/bytes_methods.gcda:Cannot open
profiling:/opt/Python-3.6.1/Objects/accu.gcda:Cannot open
profiling:/opt/Python-3.6.1/Parser/myreadline.gcda:Cannot open
profiling:/opt/Python-3.6.1/Parser/parser.gcda:Cannot open
profiling:/opt/Python-3.6.1/Modules/xxsubtype.gcda:Cannot open
profiling:/opt/Python-3.6.1/Modules/symtablemodule.gcda:Cannot open
profiling:/opt/Python-3.6.1/Modules/zipimport.gcda:Cannot open
profiling:/opt/Python-3.6.1/Modules/stringio.gcda:Cannot open
profiling:/opt/Python-3.6.1/Modules/textio.gcda:Cannot open
profiling:/opt/Python-3.6.1/Modules/bufferedio.gcda:Cannot open
profiling:/opt/Python-3.6.1/Modules/bytesio.gcda:Cannot open
profiling:/opt/Python-3.6.1/Modules/fileio.gcda:Cannot open
profiling:/opt/Python-3.6.1/Modules/iobase.gcda:Cannot open
profiling:/opt/Python-3.6.1/Modules/_iomodule.gcda:Cannot open
profiling:/opt/Python-3.6.1/Modules/_localemodule.gcda:Cannot open

我在debian 8服务器上从源代码构建了python。在


Tags: modulesparserobjects错误openjenkinsoptprofiling
2条回答

我通过改变所有者来解决这个问题。我使用的是python3.6.3 build使用./configure enable optimizations来设置homeadsistant。 从我的虚拟env中我得到了这些错误,但是修复了它们:从su/root帐户

sudo chown -R homeassistant:homeassistant /home/pi/Python-3.6.3

我想也许它可以帮助其他人;) 祝您有个美好的一天!再见!在

这发生在我身上的时候./configure enable-optimizations。如果删除 enable-optimizations,请重新编译并安装它-这些消息不再显示。在

总而言之,下面是一个新版本Python的示例:

wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
tar xvf Python-3.6.3.tgz
cd Python-3.6.3
./configure
make
sudo make altinstall
python3.6

相关问题 更多 >

    热门问题