【问题标题】:Py2Exe detected as virus. Alternatives?Py2Exe 检测为病毒。备择方案?
【发布时间】:2018-07-05 23:45:42
【问题描述】:

所以,我创建了一个 python 程序。使用 Py2Exe 转换为 exe,并尝试使用 PyInstaller 和 cx_freeze。所有这些都会触发程序在 virustotal 和我的本地计算机上被 avast、avg 和其他人检测为病毒。

我尝试更改为 Hello World 脚本以查看问题是否存在,但结果完全相同。

我的问题是,是什么触发了这种检测? .exe的创建方式?

如果是这样,Py2exe、Pyinstaller、cx_freeze 还有其他替代品吗?

【问题讨论】:

标签: windows computer-science py2exe malware virus


【解决方案1】:

你可以试试nuitka。

pip install -U nuitka

例子:

nuitka --recurse-all --icon=app.ico --portable helloworld.py

网站:

http://nuitka.net/

也许你需要安装 Visual C++ 2015 Build Tools 进行编译。

http://landinghub.visualstudio.com/visual-cpp-build-tools

【讨论】:

    猜你喜欢
    • 2011-03-15
    • 2021-08-07
    • 1970-01-01
    • 2010-10-13
    • 2010-11-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多