What is the reason why VSCode pylint import reported an error?

problem description

pylint error: E0401:Unable to import "mail"

the environmental background of the problems and what methods you have tried

directory structure

ad/
    mail.py
    main.py

related codes

/ / Please paste the code text below (do not replace the code with pictures)

-sharp main.py
from mail import send_group_mail

-sharpsettings.json
{
    "python.pythonPath":"/usr/local/bin/python3"
}

what result do you expect? What is the error message actually seen?

pylint do not report an error

Menu