It is officially announced that Python3 2.x will be suspended for support. Here’s how to install Python3 for Mac. If you already have Python3 in your system, start reading part 2.
There is a lot of way for compiling code of c using a mac. Sublime Text Editor:- By using the sublime text you can only write coding in c language but for compiling it you need to take the help of Terminal to run that piece of code. Once installed, the Color Picker can be invoked within Sublime Text 3 via: Microsoft Windows: ctrl + shift + c. Mac OS X: cmd + shift + c. Linux: ctrl + shift + c.
1. Install Python 3
- Sublime Text 3 is the current version of Sublime Text. For bleeding-edge releases, see the dev builds. Sublime Text may be downloaded and evaluated for free, however a license must be purchased for continued use. There is currently no enforced time limit for the evaluation.
- Open up the finder. Under file open up a new finder window (CMD + N) Navigate to applications folder. Find Sublime Text and right click so you get a pulldown menu. Click on Show Package Content. Open up Content/SharedSupport/bin. Copy the subl file. Paste it in the bin folder in the usr folder we found earlier.
As you’ve probably know, Python is generally installed in Mac. If you want to know what version does your Mac have, here’s how you can find out:
You can download 3.x version via the following link to Python officail website https://www.python.org/downloads/mac-osx/. Open pkg file to start the installation.

2. Register Python 3.X in build system on Sublime
If you open Python 3.x on Sublime after the installtion, you will still see that the program runs 2.7 instead of the new version you just downloaded. If you want to start 3.x version, you have to register Python 3 on your new Build System.
1) Find out where Python3 was installed on your terminal via using the following command:
Memorize or write down the location becuase you will need to input the loation in Sublime.
2) Click Tools > Build System > New Build System
3) With the new tab, input “untitled.sublime-build” and save
Input the location you found out on terminal in 'cmd'
and save with cmd+s. I recommend to name the file with something meaningful. I used python3.sublime-build
as the file name.
FYI, the location of file on *.sublime-build
is Users/{USER_NAME}/Library/Application Support/Sublime Text 3/Packages/User
Sublime C++ Plugin
4) If the file is properly saved, you will see the saved file on your Build System menu.
3. Python3 Build Test
Sublime Text 3 C++ Mac
Write short Python code on Sublime for the test and save iwth .py
Click Tools > Build System > pytho3 and save with cmd+b, you will see the result as below:
You don’t need to select .py afterwards.