1.pip install pyinstaller
2.pip install pywin32
3.D:\python\Lib\site-packages\PyInstaller
直接在该目录cmd
4.D:\python\Lib\site-packages\PyInstaller>python pyinstaller.py -F web.py
5.找生成的exe 12902 INFO: Appending archive to EXE D:\python\Lib\site-packages\PyInstaller\dist\web.exe
6.右键管理员运行