Results 1 to 5 of 5
  1. #1

    Member Since
    Nov 10, 2004
    Toronto, Canada
    stock 17" 2.8ghz unibody mbp.
    PYTHON PROGRAMMERS!!! how do i compile/run linux-based python code on OS X
    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

  2. #2
    Quote Originally Posted by pkny
    but my univ is being gay
    Will your University only sleep with other Universities?

  3. #3
    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!

  4. #4
    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.

  5. #5
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Python code dilemma!
    By Slancelot in forum OS X - Development and Darwin
    Replies: 4
    Last Post: 05-10-2015, 09:06 PM
  2. Help needed to compile Python 2.5.6 from source on OSX 10.8
    By symbolix in forum OS X - Development and Darwin
    Replies: 4
    Last Post: 06-26-2013, 04:52 PM
  3. Which pygame versions run with python 3 on mac
    By Mfred in forum OS X - Apps and Games
    Replies: 1
    Last Post: 09-11-2012, 12:24 AM
  4. How do I compile source code on a mac Im trying to compile hydra 7.1.src.tar.gz on a
    By programmaster in forum OS X - Development and Darwin
    Replies: 5
    Last Post: 11-15-2011, 11:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts