New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

PYTHON PROGRAMMERS!!! how do i compile/run linux-based python code on OS X

Post Reply New Thread Subscribe

Thread Tools

Member Since: Nov 10, 2004
Location: Toronto, Canada
Posts: 108
pkny is an unknown at this point
Mac Specs: stock 17" 2.8ghz unibody mbp.

pkny is offline
any experienced programmers know what i can do to set up my osx so i can write python - i know osx supports python.. but my univ is being gay, we're learning to write python for the linux os... osx is based on bsd.. linux isn't.. i had some mac wiz tell me that linux is based on gnu while osx is bsd.. he suggested i run linux on my mac.. but i dont want to do that.. another option is via terminal and ssh to the school's inux server - dont want to do that either.. i want to full advantage of my pbook - but he said i need to learn how to create makefiles (that has linux and bsd targets) and write portable code << i doubt i'll be able to do that since i'm totally new to python..

so any experience programmer have any suggestions as to what i can do? any help will do - i dont start writing python till january..

thanx in advance
QUOTE Thanks
Posts: n/a

Originally Posted by pkny
but my univ is being gay
Will your University only sleep with other Universities?
QUOTE Thanks
Posts: n/a

In my experience you only need Python installed in your Mac.
And that's it. Python scripts are platform independent, at least
as far as my experience goes. I have developed some scripts
in my PowerBook which i run in Linux, and viceversa.
No problems with compiling because Python compiles on
run time. So your problem does not exist!
QUOTE Thanks
Posts: n/a

Linux isn't based off of GNU, it just uses GNU utilities. Linux is just the kernel. BSD is based off of UNIX, but so is Linux. Both BSD and OSX use GNU utilities. They also all use other open source utilities such as Python. If you open up a terminal in OSX (or console, I forget what they call thier command line) and type "python" you will get the little ">>>" python prompt and have access to the python interpreter. If that isn't enough, or missing for whatever reason then you can download a python IDLE at

If you want to write re-usable Python scripts instead of just writting things into the interpreter, then you are going to need a text editor such as VI or Pico. I know these editors are out there for mac. If you are going to need to keep up with people using Linux, then I recommend you get Fink as it gives you access to alot of GNU programs.
QUOTE Thanks
Posts: n/a

There is absolutely nothing to worry about, you couldnt write a python program that works on linux but not OS X even if you tried.
Well, unless you wrote a python module in C or something
QUOTE Thanks

Post Reply New Thread Subscribe

« XCode Include path problem | iBook and C »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 06:03 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?