a useful tools in windows py2exe(optional)
TRANSCRIPT
PYTHON: SOME USEFUL TOOLS
JohnThursday, April 13, 2023
PY2EXE: CREATE YOUR EXE FILE IN WINDOWS
Install it from PYPI
• Use pip or easy_install install the py2exe module
Create your first program
• Write python file hello.py#hello.pyprint “hello,world”
• Write the setup.py under same dir
• Run your setup script>>> Python setup.py py2exe• Run the hello.exe file under dist
if you meet “error: MSVCP90.dll: No such file or directory”
Change the setup filefrom distutils.core import setupimport py2exesetup(windows=[‘hello.py'], options = { "py2exe": { "dll_excludes": ["MSVCP90.dll"] } }, )