from captcha.image import ImageCaptcha captcha = ImageCaptcha() print(captcha.generate())