[Tutor] Using Python with a Mac

Eric Dorsey dorseye at gmail.com
Wed Feb 24 02:43:08 CET 2010

Not sure if this is what you're asking, but you can invoke the Python
interpreter from the command line (Terminal)

Open a new terminal, and at the $ prompt just type "python"..

$ python
Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> print "now in the python interpreter"
now in the python interpreter

To run a python program from the command line (assuming its in the same
directory), just type:

$ python myprogram.py

On Sun, Feb 21, 2010 at 10:06 AM, Marco Rompré <marcodrompre at gmail.com>wrote:

> Hi everyone, I would like to know how to use python with a mac.
> For now, I go to spotlight, open terminal then type IDLE and a window pops
> up but its like the window that opens when you run your programs already
> saved and I'm not able to open another window to write a script from
> scratch.
> Could someone help me please please????
> I have the latest Macbook Pro so 2,88ghz 15 inches screen.
> Thank you in advance
> Marchoes
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100223/3cc865df/attachment.html>

More information about the Tutor mailing list