G+_Neil Tsubota Posted May 5, 2014 Share Posted May 5, 2014 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 More sharing options...
G+_Michael Polinske Posted May 5, 2014 Share Posted May 5, 2014 Go to python.org and download Python 2.7.6 which is the version Snubs and Padre are writing for. Link to comment Share on other sites More sharing options...
G+_L I Posted May 5, 2014 Share Posted May 5, 2014 Doesn't python come standard on OS X? Or is that just Linux boxes? Go to a terminal window and type "python" and see :) Link to comment Share on other sites More sharing options...
G+_Lee Crocker Posted May 5, 2014 Share Posted May 5, 2014 Python should already be installed, but you may want to install IDLE, the development environment they are using. Python.org should tell you how to do that. Link to comment Share on other sites More sharing options...
G+_Joe Maruschek Posted May 5, 2014 Share Posted May 5, 2014 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 More sharing options...
G+_Lee Crocker Posted May 5, 2014 Share Posted May 5, 2014 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 More sharing options...
G+_Neil Tsubota Posted May 10, 2014 Author Share Posted May 10, 2014 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 More sharing options...
G+_Joe Maruschek Posted May 10, 2014 Share Posted May 10, 2014 Just give us some more details on what you were trying to do, what exactly you downloaded, and what error messages you are getting. That will help figure out what is going wrong. Link to comment Share on other sites More sharing options...
G+_L I Posted May 10, 2014 Share Posted May 10, 2014 Maybe it's not Mavericks compatible? Link to comment Share on other sites More sharing options...
Recommended Posts