python - 检测到恶意软件的cx_Freeze exe文件

问题描述 投票:3回答:1

在每台计算机上,每个AntiVirus-Software都会将我的cx_Freeze 5.0.2创建的exe文件检测为恶意软件。编译什么代码无关紧要,每个代码都被检测到。尝试在Python 3.4中使用cx_freeze 4.3返回并编译会导致很多错误,因为我的脚本存在兼容性问题。

我能做什么?像py2exe这样的东西因为错误和Python 3.6太多而无法正常工作。

python cx-freeze malware virus
1个回答
0
投票

pyinstaller包是最好的!见:http://www.pyinstaller.org/

你也需要安装pywin32包,然后你可以尝试这个(在你的命令行上运行):

pyinstaller.exe --onefile --windowed --icon=app.ico your_app.py

你可以找到它的所有命令:https://pythonhosted.org/PyInstaller/usage.htmlhttps://mborgerson.com/creating-an-executable-from-a-python-script/

© www.soinside.com 2019 - 2024. All rights reserved.