Put mails in a folder called mails Attachments are put into a folder called attachments run below to create the exe pyinstaller --onefile run.py