473,287 Members | 1,651 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

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
Jun 27 '08 #1
4 1656
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
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
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Draper | last post by:
I am having a lot of problems trying to get a Python CGI to run. I have included 3 parts... 1) A simple stripped down python module. 2) An output of what I get when I do: python index.py...
1
by: funny_leech | last post by:
Please tell me if there's a better group to post this in-- I've been trying to get a MoinMoin installation up-and-running for the last two days. I've installed the latest MoinMoin version,...
18
by: W. Watson | last post by:
What do I download to use Python with MX XP Pro on an ASUS 4 year old motherboard? I would guess a good book source for starters would be the O'Reilly book. Wayne T. Watson (Watson Adventures,...
2
by: jeffself | last post by:
I'm running Python 2.5.1 which I'm getting from the MacPort package system. I just installed Django and tried to start up the Django server and I got the following error: ImportError: No module...
4
by: Timothy Smith | last post by:
Not sure exactly what I need to do to get wxPython to work on either of my Macs. (One's a notebook running Tiger (OS X 10.4.11), the other a Mac Pro running Leopard (10.5.1.)) I downloaded what...
0
by: Yansky | last post by:
Hi, I'm having a lot of problems getting any Python scripts to run on my website. I have put them in the cgi-bin directory and chmodded both the directory and files to 755. But when I try to access...
8
by: geert | last post by:
Hi all, I have a mac mini running maocosx 10.5 leopard I want to deploy a django project on. My backend is MySQL, and I have it running as a 64- bit app. Of course, apache2 is also running as...
3
by: Thomas Morton | last post by:
This is a "thing" that has been annoying me all morning: and I can't work out how to do it. I need a way to get the DPI or screen resolution of the monitor that a script is currently runnign on....
2
by: Scott | last post by:
I'm debugging an xmlrpc client/server application. Often when an exception occurs in the server, I receive only a very short error message on the client. For example: xmlrpclib.Fault: <Fault 1:...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.