[Bugs]

作者: AlexZhao | 来源:发表于2015-01-21 11:00 被阅读385次

[杂项][BUG]python 中debug出现ImportError: cannot import name compile_command

问题

python在debug的时候报错:ImportError: cannot import name compile_command

原因

这种情况是由于你的代码中有一个code.py的文件,或者可以导入的code文件夹。使得系统的code库无法正常导入。

你自己的code.py文件中不存在一个叫做 compile_command的方法。

解决方法

解决方法也很简单,把你的code文件改名字,不要使用标准库中存在的名字作为你的code的名字。

相关文章

  • Hungry sausage-Eating insects

    Sausages like to eat bugs. If there are bugs flying over ...

  • GMAIL SPDY V3 header decompress

    Wireshark · Wireshark-bugs: [Wireshark-bugs] [Bug 10528] ...

  • Bugs

    1. Server Tomcat v9.0 Server at localhost failed to start...

  • Bugs

    【日期】:2004-08-17 【问题】:当解码 Q.931 信令时无限循环 【原因】:当在Q.931信令中发现一...

  • [Bugs]

    [杂项][BUG]python 中debug出现ImportError: cannot import name c...

  • find-sec-bugs

    简介 find-sec-bugs 即 Find Security Bugs,是SpotBugs的一款插件,用于Ja...

  • Bugs inside

    真实意识到自己的嫉妒之心,仅仅因为很多人帮她点赞我便开始去比较记恨起一些人了。 她们更喜欢她,也更信任她,这也许是...

  • python bugs

    操作mysql数据库报错Incorrect string value Django之TIME_ZONE初探 关于P...

  • magento Bugs

    1.product image place holder Replicate: Stores>Configurat...

  • libuv bugs

    I use the libuv version v0.11.9 and reproduce the bug . m...

网友评论

      本文标题:[Bugs]

      本文链接:https://www.haomeiwen.com/subject/lsehxttx.html