–icon=<FILE.ICO>将file.ico添加为可执行文件的资源(只对Windows系统有效),改变程序的图标 pyinstaller-i ico路径 xxxxx.py –icon=<FILE.EXE,N>将file.exe的第n个图标添加为可执行文件的资源(只对Windows系统有效)-vFILE,–version=FILE将verfile作为可执行文件的版本资源(只对Windows系统有效)-nNAME,–name...
\print-student>Pythonpyinstxtractor.py.\main.exeDeprecationWarning:theimpmoduleisdeprecatedinfavourofimportlib;seethemodule's documentation for alternative usesimportimp[*]Processing.\main.exe[*]Pyinstallerversion:2.1+[*]Pythonversion:309[*]Lengthofpackage:5835756bytes[*]Found59filesinCArchive[*]Beginningex...
if os.path.exists("pycfile_tmp"): shutil.rmtree("pycfile_tmp") os.mkdir("pycfile_tmp") main_file_result = f"pycfile_tmp/{main_file}.pyc" with open(f"{pyc_dir}/{main_file}", "rb") as read, open(main_file_result, "wb") as write: write.write(head) write.write(b"\0"*1...
zipfile=None, #不生成library.zip文件 console=[{"script": "x.py", "icon_resources": [(1, "Q.ico")] }]#源文件,程序图标 ) 然后这cmd窗口下运行: python setup.py py2exepy2exe使用方法 (含一些调试技巧,如压缩email 类) pyinstaller PyInstaller除了win32平台外还支持Linux,Unix平台.py2exe的用...
[-d {all,imports,bootloader,noarchive}] [--python-option PYTHON_OPTION] [-s] [--noupx] [--upx-exclude FILE] [-c] [-w] [--hide-console {hide-late,minimize-early,minimize-late,hide-early}] [-i <FILE.ico or FILE.exe,ID or FILE.icns or Image or"NONE">] ...
第四步:反编译pyc文件得到python源代码 第五步:欣赏一下反编译的代码 # uncompyle6 version 3.9.0 # Python bytecode version base 3.6 (3379) # Decompiled from: Python 3.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) [MSC v.1916 64 bit (AMD64)] # Embedded file name: autoTi...
pip install uncompyle6 uncompyle6 xxx.pyc>xxx.py 如:uncompyle6 .\pycfile_tmp\main.pyc # uncompyle6 version 3.9.0 # Python bytecode version base 3.9.0 (3425) # Decompiled from: Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] ...
PyInstaller会自动检测Python脚本的依赖项,并将它们打包到生成的可执行文件中。 单文件发布 使用--onefile选项,可以将所有的依赖项打包成一个单独的可执行文件,方便分发和部署。 支持图形用户界面(GUI)和命令行界面(CLI)应用 PyInstaller适用于各种类型的Python应用,包括包含图形用户界面的桌面应用和命令行工具。
360对python脚本无感,火绒和df会对py有检测,那这说明可能pyinstaller打包之后的文件的一些特征触发了相关的检测规则,而且其特征已经被某些av纳入了病毒特征,就像易语言打包的exe程序都会被杀一样。 vt测试打包之后的exe文件: https://www.virustotal.com/gui/file/0b418052f4ac12c80a7a6a140818d317513a5442fed700b4...
pyc:脚本文件编译得到的字节码,二进制文件,python文件经过编译器编译之后的文件。可以提高文件加载速度。 pyo:脚本文件开启优化编译选项(-O)编译得到的字节码,二进制文件,优化编译后的文件。可以通过python -O file.py生成。 pyd:基本的Windows DLL文件,python的动态链接库。