Python error: ImportError: cannot import name Akismet

前端 未结 6 1092
时光说笑
时光说笑 2021-02-13 20:40

I\'ve seen many similar errors, but I can\'t see a solution that applies to my particular problem.

I\'m trying to use the Akismet module which is on my PYTHONPATH, then

6条回答
  •  我寻月下人不归
    2021-02-13 21:23

    I always forget that ipython imports the modules when you use run command inside the ipython interpreter. It won't re-import any modules that you change, so any new variables or functions won't be found. This is a known issue with ipython.

    Conclusion: Avoid using run as it won't reload your modules.

提交回复
热议问题