Possibly. Dealing with malware/detection can be an ever fluid thing, but there is a suggested solution available here. In essence, it involves uninstalling Pyinstaller and manually compiling its bootloader. There are a number of steps involved, but if it works it may allow you to compile your programs as needed.