Python error: ImportError: cannot import name Akismet

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

    It will work perfectly if your PYTHONPATH is set correctly and globally (just tested it myself).

    • Must be set to the directory containing "akismet.py", not the file path! Make sure you don't use relative paths.
    • Note that you might need to reboot/logoff in order to apply environment variable changes to all programs.

提交回复
热议问题