fanlumaster

问题描述

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

分类:

技术点:

相关文章:

  • 2022-03-03
  • 2021-11-12
  • 2022-01-03
  • 2022-12-23
  • 2021-08-29
  • 2021-11-27
  • 2021-11-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-12
  • 2021-05-26
  • 2022-01-05
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
相关资源
相似解决方案