Search code examples
pythonpython-3.xvirusvirus-scanningpyarmor

pyarmor exe file is treated as a virus threat by windows defender


I use below command to create a single exe file

pyarmor pack -e " --onefile" final.py

and it works perfectly until windows defender starts to scan for viruses and define this exe file as virus!


Solution

  • it solved by adding --clean

    pyarmor pack --clean -e "--onefile " final.py