[python] 关于错误 ImportError: cannot import name compile_command

我的pydev某一天开始就无法debug 了,执行debug 就会报 ImportError: cannot import name compile_command

原因居然是:我自己写了一个code.py模块。 而compile_command 是来自标准的code模块,我的code肯定没有实现这个。因此:

自己写python 模块起名一定要慎重!! 或者,是时候使用 namespace了。

原文地址:https://www.cnblogs.com/Clisa/p/5594942.html