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

16 Replies, 1319 Views

Hey! First thing I'd check is whether Python is in your PATH. Open cmd and type `python --version`. If it doesn't recognize the command, you gotta add Python to PATH during installation (or manually).

Also, on Windows, sometimes `py script.py` works better than `python script.py`.

For running without command line, try IDLE (comes with Python) or VS Code with the Python extension. Super easy to run a Python script there with just a click.

Messages In This Thread



Users browsing this thread: 1 Guest(s)