Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
586 views
in Technique[技术] by (71.8m points)

imap - module 'imaplib' has no attribute 'IMAP4_SSl' error in python how to fix in python 3.9


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

There's no such thing as IMAP4_SSl, but there is IMAP4_SSL. You have a lowercase l instead of an uppercase L. Python is case-sensitive. Notice how in the documentation, the name is all uppercase:

https://docs.python.org/3/library/imaplib.html#imaplib.IMAP4_SSL


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...