Quello che hai te è un falso positivo data dalla mancanza di alcuni flag di sicurezza, tipico di PyInstaller. Per poter risolvere dovresti cancellare tutti i file temporanei come __pycache__, dist e build, provare a rebuildare e , nel caso hai problemi, dovresti reinstalare PyInstaller e un compilatore C o C++ in grado di poterti fare il build secondo una safe-mode di Windows:
- Installa l'ultima release di PyInstaller da qui: https://github.com/pyinstaller/pyinstaller/releases
- Installa un compilatore C o C++ su VSCode per il building tipo: https://visualstudio.microsoft.com/vs/features/cplusplus/
- Tramite
Codice:
cd
- Esegui:
Codice:
python.exe ./waf all --target-arch=64bit
- Vai nel folder di PyInstaller ed esegui:
Codice:
python.exe setup.py install
- Rifai il build dell'exe
- Verifica qua se hai inserito i flag correttamente andando a fare l'upload dell'exe: https://www.virustotal.com/gui/home/upload