Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Dates and Times in Python (2014) Where on Earth do Timezones Make Sense? Actually, Use pytz Instead

Onur Salman
Onur Salman
3,612 Points

Please help , I am trying to use Python 3 on mac El Capitan using Xcode

I am really new to coding and I have been using the workspaces that were provided. I want to use python3 on my Apple computer to tryout some programs. During my search I have seen that people use python3 on Xcode ( which I have on my computer) . Can someone help me by writing the steps to using Python 3 on Xcode ? As I said I am a newbie please note that , I have never used it on a Mac.

Thanks you all.

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,857 Points

By default, Macs use Python 2.7 (which is already installed). If you want to use Python 3, it will take some research and some work to set things up properly.

I don't use Python, so I am not able to fully instruct you on the Hows, but the Stack Overflow thread may get you going in the right direction. Other than that, I can only suggest hitting up Google.

Good luck! :)

:dizzy:

Michael Hulet
Michael Hulet
47,911 Points

First of all, Xcode is pretty overkill for a language like Python. I'd recommend a more lightweight editor, like Atom. Other than that, there's an awesome package manager for OS X called "Homebrew", which you can install with this command:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Once you have that installed, it's as simple as running

brew install python3