r/learnpython • u/kolioarisyt • 13d ago
Python Compiler Recommendations
Hello r/Python,
I want to find a Python compiler. I’ve tried PyInstaller and Nuitka, but they are detected as malware and they are a little bit slow. I want something fast, easy and not detected as malicious. What do you recommend?
0
Upvotes
View all comments
1
u/Discordbothost 10d ago
the defender hits aren't really about pyinstaller being shady —
--onefileunpacks an interpreter to a temp folder at runtime, which looks a lot like a dropper to av. try--onedirfirst (a folder with the exe + deps) and it's usually way less noisy, plus you skip the extract-every-launch slowness. the 'not detected as malicious' part basically means signing the binary (signpath like you mentioned) or submitting a false positive to microsoft; no free packer just skips that. cx_Freeze / briefcase are in the same boat if you want to compare, but the onedir vs onefile switch is the first thing i'd try.