Python error: ImportError: cannot import name Akismet

前端 未结 6 1082
时光说笑
时光说笑 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:29

    Check if your PYTHONPATH is really what you expect it to be, e.g. by doing this in an interactive console:

    In [1]: import sys
    
    In [2]: print sys.path
    

    is akismet.py really in one of those folders?

提交回复
热议问题