如何修复Python中的错误“ ModuleNotFoundError:没有名为'captcha.imgae'的模块”?

时间:2020-06-26 08:00:32

标签: python-requests

我正在尝试用Python创建Image Captcha,但在输出中却出现了错误。请问以下问题。

代码:

from captcha.imgae import ImageCaptcha
ic = ImageCaptcha()
ic.write("siva","one.png")
print("Captcha IMAGE is created")

输出:

Traceback (most recent call last):
  File "D:\Python\practice35.py", line 3, in <module>
    from captcha.imgae import ImageCaptcha
ModuleNotFoundError: No module named 'captcha.imgae'

1 个答案:

答案 0 :(得分:0)

看起来是错字,应该有captcha.image