By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,183 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

Getting up and running with Python on a Mac

P: n/a
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
Jun 27 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
tk****@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
http://www.codebykevin.com
Jun 27 '08 #2

P: n/a
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:

http://macinscience.org/?page_id=6

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
Jun 27 '08 #3

P: n/a
In article
<7d**********************************@m45g2000hsb. googlegroups.com>,
tk****@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
Jun 27 '08 #4

P: n/a

On 29 maj 2008, at 22.57, tk****@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
to************@comhem.se

Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.