[b]"What's the easiest way to run a Python script on Windows/Mac/Linux?"[/b] or [b]"How do I properly run a Python

16 Replies, 1257 Views

Ugh, I feel your pain. Double-clicking a .py file might not work if the file association is messed up. Right-click the file > Open With > Choose Python.exe.

If you're on Mac/Linux, yeah, `python3 script.py` is the way to go. Windows is weird with that.

Pro tip: Use `pyinstaller` to turn your script into an .exe if you wanna avoid Python entirely.

Messages In This Thread



Users browsing this thread: 1 Guest(s)