exe generated by py2exe and pyinstaller not working
问题 I wrote a screenshot program using python and wanted to compile it as .exe file. So I tried with both py2exe and pyinstaller . My python version is 2.7.14 , 32bit. I use Windows 10. I also use virtual environment in this project. My code for the screenshot program is like below. I run it by python screenshot.py and it take a screenshot of my screen and stored it inside the save directory. from PIL import Image import pyscreenshot as ImageGrab import time time.sleep(3) save_dir = "C:/Users