CLion控制台调试出现 "Error during pretty printers setup: Error while executing Python code." 问题

问题描述

CLion Debug 时出现这个问题:

Error during pretty printers setup: Error while executing Python code.

Some features and performance optimizations will not be available. 

解决方案

找到这个文件:

20201229164244

我的里面的原来的内容为:

python
import sys
sys.path.insert(0, sys.path[0] + '/../../gcc-8.1.0/python')
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
end

现在将其替换为:

python
import sys
sys.path.insert(0, '/your/path/here/python')
sys.path.insert(0, '/your/path/here/python/libstdcxx/v6')
from libstdcxx.v6.printers import register_libstdcxx_printers
end

然后,控制台就不报错了。

按:我不知道为什么要这样改,但是这样改之后确实是不报错了。我这该死的强迫症。

参考:https://stackoverflow.com/questions/26511481/pretty-printers-error-while-executing-python-code-in-eclipse-ubuntu-14

posted @ 2020-12-29 16:48  模糊计算士  阅读(5743)  评论(6编辑  收藏  举报