- Download the installer from http://pythonmac.org/packages/py25-fat/dmg/python-2.5-macosx.dmg (approximately 18MB)
- Mount the disk image.
- Backup your .bash_profile before you install.
- Double click MacPython.mpkg to start the install process. This would install the Python Frameworks along with the extras including IDLE. They would be installed in the Applications/MacPython 2.5 folder.
- Open TextEdit or your favourite text editor, in a blank text only file, type
print "hello world" - Save the file with the extension .py and close the text editor.
- Open this file with IDLE and from the Run menu, select Run Module.
- You should see hello world in the Python Shell.
If you have any questions or problems, just post back!
6 comments:
Thank you for your python mac post! I was able to use the link and install on mac tiger with no problem. Thanks.
Thanks dustin,
Glad you found it useful.
Do keep visiting frequently - I will continue to update the blog.
Cheers!
Hey Vibhu,
I am pretty new to how the computer is constructed. the bash_profile is that the log in users profile?? And if so, how exactly does one back that up?
Thanks,
Emma
Hi Emma,
Thanks for the post,
I am not quite sure what you mean by the question.
If you want to copy the bash_profile, one of the easiest ways to do this is through the Terminal, use the "cp" command.
The syntax is
> cp file1.txt folder/file1_copy.txt
Hope this helps,
Do let me know!
Hi thanks for the help glad it worked.
There is one question I want to know though. I wondered if Python was the software used for binary codes. if so could you please explain how I could write such things as binary codes in it. If not do you know any softwares the run them.
Thanks Isaac Skelton.
My website is... http://www.freeadsplusmore.webs.com
Hi Isaac,
Thanks for the post, but I don't understand it quite, do you want to "code" in binary?
Let me know and lets see if I can help you out...
Post a Comment