
But if you use a command like python3 or python3.5, you’ll have to modify Sublime Text slightly so it uses the correct version of Python to run your programs.

If you use the simple command python to start a terminal session on your system, you shouldn’t have to configure Sublime Text at all. The second (and most common way) that you can run Python on your Mac is by using the Terminal, which is a tried and true way to run Python script on macOS. Installing Visual Studio Code on Mac Running our first Python script on Mac Installing and Updating Python on Mac.

How To Run Python on Mac Using the Terminal. Sublime Text has a liberal licensing policy it’s free as long as you want to use it, but the author requests that you purchase a license if you like the program and want to continue using it.Īfter you’ve downloaded the installer, open it and then drag the Sublime Text icon into your Applications folder. As well as even have the ability to debug to get rid of any potential problems that may interfere with Python. You can download an installer for Sublime Text by clicking on the OS X link at.

You’ll use the python3 command when you configure your text editor, when you start a Python terminal session, and when you run programs from the terminal.
