Jump to content

I have been enjoying your episodes on Python "


G+_Neil Tsubota
 Share

Recommended Posts

I have been enjoying your episodes on Python". I have been learning, and thinking about writing my first python files. I now have a 'question'... If notice that the screen-shots are from a "Windows-based" computer. (Notepad, start menu, icons) I thought I heard that if I am using an Apple-Mac type computer, that the python program is already running if I am using OS 10.X, or higher. How do I get the same screen shots on an Apple Mac computer ?

Link to comment
Share on other sites

I just got a new Mac Mini and it came with OS X Mavericks which includes Python 2.7.5.  Its been good enough to run the examples in the show.  On a mac, you would be working more like Dale does.  If you notice in his screen shots, he has his code in an editor called TextWrangler, and to run it he switches to a Terminal window where he types: python [name].py

Link to comment
Share on other sites

You can also make the first line of your script "#!/usr/bin/env python", make the script executable, and then you can run it just by typing it's name (e.g. "./myscript.py")? This works on Unix-like systems (Linux, MacOS, and others, but not Windows).

Link to comment
Share on other sites

OK, I would like to 'thank' everyone for the "tips"  for a 'newbee'. ( ?sp)  I downloaded the Python program for the Mac Os.  Now, when i "run" the Python "package". I get a window that says that it can NOT run this program.  (What ?....)  Any suggestions would be appreciated.

Link to comment
Share on other sites

 Share

×
×
  • Create New...