python打包exe

方案1 pyinstaller

安装方式: pip install pyinstaller

用法: pyinstaller -F -i exe.ico hello.py

问题:1,杀毒软件会杀掉生成的exe,原因不明

  2,需要自行编译win平台的bootloader

方案2 Nuitka

安装:1,python -m pip install nuitk

          2,需要安装C++编译器,推荐mingw

用法:python -m nuitka –mingw64 –standalone –onefile .\getLicenseOfTasking.py

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注