1.å®è£
使ç¨PyInstalleréè¦å®è£
PyWin32ã
ä¸è½½ä¸Python对åºçPyInstallerçæ¬ï¼ 解ååå°±ç®å®è£
å¥½äº ã
2.çæexeæ件
Pythonç¨åºçç®å½ä¸º F:\hello.py
å¨å½ä»¤è¡ ä¸è¿å
¥pyinstalleræå¨çç®å½ï¼è¿è¡python pyinstaller.py F:\hello.py
å¨PyInstaller-2.1ç®å½ä¸ï¼çææ件夹hello
helloç®å½ä¸ææ件
exeæ件å¨distç®å½ä¸
å¦æå°pythonæ件å¤å¶å° pyinstaller.py æå¨ç®å½ä¸ï¼åè¿è¡ python pyinstaller.py hello.py
3. pyinstallerçä¸äºåæ°
(1) -F å¶ä½ç¬ç«çå¯æ§è¡ç¨åºï¼ä½æ¯ï¼è¿è¡çæçexeæ件ä¼å
å«è¦åã
温馨提示:答案为网友推荐,仅供参考