Py2Exe被检测为病毒。备择方案? [英] Py2Exe detected as virus. Alternatives?

查看:149
本文介绍了Py2Exe被检测为病毒。备择方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

So, I created a python program. Converted to exe using Py2Exe, and tried with PyInstaller and cx_freeze as well. All these trigger the program to be detected as virus by avast, avg, and others on virustotal and on my local machine.

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

I tried changing to a Hello World script to see if the problem is there but the results are exactly the same.

我的问题是,触发此检测的原因是什么? .exe的创建方式?

My question is, what is triggering this detection? The way in which the .exe is created?

如果这样,Py2exe,Pyinstaller和cx_freeze是否有其他替代方法?

If so, are there any other alternatives to Py2exe, Pyinstaller, cx_freeze?

推荐答案

您可以尝试nuitka。

You can try nuitka.

pip install -U nuitka

示例:

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

网站:

http://nuitka.net/

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

Maybe you need to install Visual C++ 2015 Build Tools for compile.

http://landinghub.visualstudio.com/visual-cpp-build -工具

这篇关于Py2Exe被检测为病毒。备择方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆