Pyinstaller加密打包遇到的坑

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 =

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值