You should follow this guide to update and install your iOS development environment before Python, as the Python installers actually have some dependencies on the iOS tools.
Install the Xcode Command Line Tools, which is a bundle of command-line based software for developers. It includes things like
clang. For a complete list, see this article.
Install Command Line Tools by running this command in terminal:
$ xcode-select --install
To install the latest version of Xcode, you need the latest version of Mac OS before you install Xcode.
- On the upper left corner, click the apple icon, and click
About This Mac
- From the
Overviewtab, click on
Software Update, and if there are any updates available, install them.
From here, Xcode is an easy download in the Mac App Store:
- Use the keyboard shortcut
spacebarand type "app store" to open the App Store.
- Once there, search for the program
After it's installed (this will take some time, it's not a quick download), you should open Xcode to allow it to do some additional installation and configuration. Note that you should not install a beta version of Xcode! Only install a production version through the app store.