On 24 September 2012 17:41, Benjamin Fishbein <[email protected]> wrote:
> Hello. I can run programs in IDLE but when I try to do it in a terminal or > with textwrangler, it usually just logs out and says it's completed, but > the program hasn't been run. This is particularly so when the program uses > urllib. I'm using OS X. > > logout > > [Process completed] > Are you using the python launcher? Or are you opening a terminal and then typing 'python myscript.py'? Tell me if the following steps work for you: 1) Open the terminal - you can find it under Applications/Utiltiies (or if you just type 'terminal' in spotlight). You should see something like: Last login: Tue Mar 6 17:21:36 on console Welcome to Darwin! ibook:~ Alex$ 2) Type 'cd name/of/folder' and hit enter to move into the folder that contains your Python script. 3) Type 'python myscript.py' and hit enter to run the script called 'myscript.py'. Oscar About the terminal: http://macapper.com/2007/03/08/the-terminal-an-introduction/
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
