Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Dates and Times in Python 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

Michael Hulet
MOD
Michael Hulet
Treehouse Moderator 47,826 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
Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,541 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: