Pyinstaller加密打包的坑
Pyinstaller加密打包遇到的坑
原来使用Anaconda3-2019.07-Windows-x86_64,Pyinstaller 3.4版本。升级到Anaconda3-2020.02-Windows-x86_64或者Python 3.7.7,使用Pyinstaller进行加密打包成EXE文件,可以成功打包。但是,运行加密的EXE文件,总是报下面错误:
Traceback (most recent call last): File “c:\python\python37\lib\site-packages\PyInstaller\loader\pyimod03_importers.py”, line 434, in get_code return self._pyz_archive.extract(fullname)[1] File “c:\python\python37\lib\site-packages\PyInstaller\loader\pyimod02_archive.py”, line 369, in extract obj = zlib.decompress(obj)zlib.error: Error -3 while decompressing data: incorrect header check
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File “site-packages\PyInstaller\loader\pyiboot01_bootstrap.py”, line 27, in File “c:\python\python37\lib\site-packages\PyInstaller\loader\pyimod03_importers.py”, line 603, in exec_module bytecode =