Getting up and running with Python on a Mac

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tkpmep@hotmail.com

    Getting up and running with Python on a Mac

    I've just bought an iMac (OS X 10.5.2, will almost immediately jump to
    10.5.3), and am looking to install Python on it, and to use it with
    XCode, Apple's IDE. Some googling suggests that a number of people
    have had trouble getting Python to run satisfactorily on their Macs.
    This is my first Mac, and I'd appreciate some guidance on what to do
    (and what not to) when installing Python and potential problems to
    keep an eye open for. I want to do a fair bit of scientific /
    numerical computing, so it would seem that SAGE ot the Enthought
    Python distribution would seem to be the most relevant - I'd
    appreciate your guidance on getting Python to run on a Mac with a
    particular focus on these two distributions.

    Thank you in advance

    Thomas Philips
  • Kevin Walzer

    #2
    Re: Getting up and running with Python on a Mac

    tkpmep@hotmail. com wrote:
    I've just bought an iMac (OS X 10.5.2, will almost immediately jump to
    10.5.3), and am looking to install Python on it, and to use it with
    XCode, Apple's IDE. Some googling suggests that a number of people
    have had trouble getting Python to run satisfactorily on their Macs.
    This is my first Mac, and I'd appreciate some guidance on what to do
    (and what not to) when installing Python and potential problems to
    keep an eye open for. I want to do a fair bit of scientific /
    numerical computing, so it would seem that SAGE ot the Enthought
    Python distribution would seem to be the most relevant - I'd
    appreciate your guidance on getting Python to run on a Mac with a
    particular focus on these two distributions.
    >
    Thank you in advance
    >
    Thomas Philips
    OS X 10.5 comes with Python installed already: 2.5.1. If you want to use
    Xcode with Python that's the way to go.

    If you want a later version of Python, you can download one from
    python.org, but I am not sure how that integrates wtih Xcode.

    --
    Kevin Walzer
    Code by Kevin

    Comment

    • Steve Lianoglou

      #3
      Re: Getting up and running with Python on a Mac

      I want to do a fair bit of scientific /
      numerical computing, so it would seem that SAGE ot the Enthought
      Python distribution would seem to be the most relevant  - I'd
      appreciate your guidance on getting Python to run on a Mac with a
      particular focus on these two distributions.
      As already mentioned, you can use the already installed Python that
      comes with Leopard (2.5.1), or you can download the latest from
      python.org (2.5.2).

      Either way, another way do get a scientific environment up and running
      is by getting the "Scipy Superpack" installer. It's a frontend that
      downloads and installs the latest scipy/numpy/matplotlib/ipython combo
      (from their SVN repos). The author updates the builds every so often,
      so you can for the most part run with the latest updates:



      If you're using the Python that comes with Leopard, it will be very
      straightforward and you'll have nothing else to do aside from running
      the Superpack installer.

      If you want to use the latest Python from Python.org, there will be
      some trickery, which includes:

      (i) getting the correct (newer) python to come first in your path,
      (ii) installing setuptools for the new python
      (iii) insuring that the new setuptools easy_install is "the one" in
      your path
      (iv) install the latest OS X wxPython build (from their website).

      It's all fairly straightforward once you account for the
      aforementioned gotchas.

      As far as the enthought installer goes, I wasn't aware that it was
      ready for showtime on OS X ... do you know otherwise?

      HTH,
      -steve

      Comment

      • David C. Ullrich

        #4
        Re: Getting up and running with Python on a Mac

        In article
        <7d593f8a-92b8-4dfe-935f-dd6a22c70faf@m4 5g2000hsb.googl egroups.com>,
        tkpmep@hotmail. com wrote:
        I've just bought an iMac (OS X 10.5.2, will almost immediately jump to
        10.5.3), and am looking to install Python on it, and to use it with
        XCode, Apple's IDE.
        If that's what you really want to do then start XCode, select
        New Project and look for the ones with "Python" in their names.

        I was excited to hear that Python was going to be automatically
        integrated into XCode in OS 10.5. I tried it once. I should say
        I really didn't give it a fair trial - the impression I got from
        my unfair trial was I'd have to learn a lot about Cocoa to do
        anything useful.

        Searched a little, decided to try wxPython next, and I was
        very happy with that. Seems much easier - also as far as I
        could see there was nothing but a 'Hello World' example
        included in XCode, while wxPython comes with a truly amazing
        suite of complete examples (the C++ wxWidgets book recommends
        looking at wxPython for the examples!)
        >Some googling suggests that a number of people
        have had trouble getting Python to run satisfactorily on their Macs.
        This is my first Mac, and I'd appreciate some guidance on what to do
        (and what not to) when installing Python and potential problems to
        keep an eye open for. I want to do a fair bit of scientific /
        numerical computing, so it would seem that SAGE ot the Enthought
        Python distribution would seem to be the most relevant - I'd
        appreciate your guidance on getting Python to run on a Mac with a
        particular focus on these two distributions.
        >
        Thank you in advance
        >
        Thomas Philips
        --
        David C. Ullrich

        Comment

        • Tommy Nordgren

          #5
          Re: Getting up and running with Python on a Mac


          On 29 maj 2008, at 22.57, tkpmep@hotmail. com wrote:
          I've just bought an iMac (OS X 10.5.2, will almost immediately jump to
          10.5.3), and am looking to install Python on it, and to use it with
          There is no need to install Python. It's distributed with the system.
          >
          XCode, Apple's IDE. Some googling suggests that a number of people
          have had trouble getting Python to run satisfactorily on their Macs.
          This is my first Mac, and I'd appreciate some guidance on what to do
          (and what not to) when installing Python and potential problems to
          keep an eye open for. I want to do a fair bit of scientific /
          numerical computing, so it would seem that SAGE ot the Enthought
          Python distribution would seem to be the most relevant - I'd
          appreciate your guidance on getting Python to run on a Mac with a
          particular focus on these two distributions.
          >
          Thank you in advance
          >
          Thomas Philips
          --
          http://mail.python.org/mailman/listinfo/python-list
          ------
          What is a woman that you forsake her, and the hearth fire and the home
          acre,
          to go with the old grey Widow Maker. --Kipling, harp song of the Dane
          women
          Tommy Nordgren
          tommy.nordgren@ comhem.se



          Comment

          Working...