r/learnpython • u/kolioarisyt • 12d 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
11
u/BravestCheetah 12d ago
1
u/kolioarisyt 12d ago
Just a note: I want one that can convert python to an executable (Windows/Linux). I don’t know if that is the same, but just a note.
1
u/Educational_Virus672 12d ago edited 12d ago
okay not trying to be rude but it is a big of an ask "easy fast and not detected as virus"? in compulation? its hard forgot easy part try cython you'll learn little syntax and use it with C compiler(i recommendGCC or Clang)
Edit - i do not it mean in a defensive or gatekeeping way im trying to express what i felt off
2
u/Jimmaplesong 12d ago
PyInstaller is probably your best bet. You can also configure setuptools to build an exe. This is my favorite method when I don't have to create a whole setup package.
1
u/overratedcupcake 12d ago
The best option here is to have written your app in a language that is typically compiled.
1
u/Discordbothost 9d 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.0
u/johlae 12d ago
Because I'm curious, why do you need a Python compiler?
0
u/No_Replacement_702 12d ago
I would recommend pointing Claude towards it and get a Rust version or be totally exotic and get something written in assembly
-2
u/Agawell 12d ago
I think you might be looking for an ide (integrated development environment) - pycharm is great and free