Py2Exe detected as virus. Alternatives?

孤街醉人 提交于 2019-12-11 01:11:09

问题


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.

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

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

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


回答1:


You can try nuitka.

pip install -U nuitka

Example:

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

Website:

http://nuitka.net/

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

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



来源:https://stackoverflow.com/questions/48464693/py2exe-detected-as-virus-alternatives

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!