[Tutor] Using Python with a Mac
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 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
> Could someone help me please please????
> I have the latest Macbook Pro so 2,88ghz 15 inches screen.
> Thank you in advance
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor