gpt4 book ai didi

python - 如何防止pyinstaller创建的exe被Antivirus删除?

转载 作者:行者123 更新时间:2023-12-05 02:12:29 32 4
gpt4 key购买 nike

我已经使用 pyinstaller 将一个 python 项目转换为一个 exe 文件。 python项目中的基本功能是读取文件,解析文件内容,写入excel文档。正如我生成的那样,该 exe 文件在我的系统中运行良好,但是当我将此 exe 文件分发到其他系统时,McAfee 防病毒软件通过显示消息“访问被拒绝” 来删除该 exe 文件。。 p>

如何处理这种情况?我已经尝试了 pyinstaller 的命令和 auto-py-to-exe 工具。但没有任何效果。

我也通知了 IT 团队,但他们说,exe 文件中存在潜在威胁。

最佳答案

issues on GitHub mentioning 'virus' in the PyInstaller repo htgoebel 反复声明:

Please contact you anti-virus vendor. There is nothing we can do about this false positive.

If your anti-virus vendor considers one of the files included in the PyInstaller distribution or a file generated by PyInstaller to be malicious, there is nothing we can do about this. Even if we'd change our code, they'd change their pattern and the race starts again.

See this mailing-list thread and other tickets for his topic.

因此,当询问“如何处理这种情况?”时,您无能为力。正如 htgoebel 所说,您无法控制反病毒供应商匹配的内容,也无法更改 PyInstaller 输出匹配的内容/方式,以便稍后再次标记。

您可能会更换为不同的防病毒供应商,但这可能超出了您的控制范围,并且在分发软件包时您仍然会遇到问题。

关于python - 如何防止pyinstaller创建的exe被Antivirus删除?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55907339/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com