Re: [Pythonmac-SIG] Loading Python on my Mac
To add some clarification to what everyone's already said: OSX comes with a Python install by default, but it's not the latest and greatest. You can make a secondary install using the disk image from python.org; this will install alongside the standard Python install, so both are available. Once you have installed a new python, you can go to the commandline and type which python. This will tell you the path to the Python executable you are currently using whenever you type python on the commandline. If it isn't the python you want, you can do which -a python to get a list of all of your options. For example: % which python /usr/bin/python % which -a python /usr/bin/python /usr/local/bin/python This says that by default I will run the python in /usr/bin (which is the default installed Python in OSX), but that there is another python in /usr/local/bin which I can also run (which is the one that I installed myself). Good luck with your class! -Chris On Wed, Jan 12, 2011 at 9:30 PM, Bill Janssen jans...@parc.com wrote: Macs come with Python pre-installed. Open a Terminal window and type python at the prompt. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] Loading Python on my Mac
John I'm totally new to Python and having worked in a windows John environment for years and now my personal pc of choice is a mac. John Would someone be so kind as to walk me through installing python John on a mac? John I don't want to use the newest version because the class that I'm John trying to get into uses 2.6 and 2.7 versions only. So, I need John that version installed so I can do homework assignments, etc. Have you tried /usr/bin/python? On Leopard (10.5.x) it is v 2.5.1. If you have Snow Leopard perhaps it's 2.6.something. If that won't work for your needs, just download the Mac installer image for 2.7.1 appropriate to your version of OS X from this page: http://python.org/download/releases/2.7.1/ Once installed, locate the file (probably in ~/Downloads or something similar) and double-click it to install in the usual manner. I normally just build from source (and don't bother with the framework stuff), so just to confirm my instructions, I tried it out: * download * open the disk image (double click, use the open command from a shell prompt, etc) * open the corresponding volume which that mounts (named Python 2.7.1) * double-click the Python.mpkg file to run the installer The resulting binary is in /usr/local/bin/python (non-framework version) /usr/local/bin/pythonw (framework version) I'm sure others more knowledgeable about Python-on-a-Mac will correct any mistakes I've made. -- Skip Montanaro - s...@pobox.com - http://www.smontanaro.net/ ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] Loading Python on my Mac
On 1/12/2011 7:06 PM, s...@pobox.com wrote: The resulting binary is in /usr/local/bin/python (non-framework version) /usr/local/bin/pythonw (framework version) I'm sure others more knowledgeable about Python-on-a-Mac will correct any mistakes I've made. That all looks right. Note also that the installer should have added it to your PATH, so if you type: python at a command prompt, you should get it. Using the Python.org binary is a good idea, as you get an up to date version, can re-distribute binaries (via py2exe) if you want, and most third party packages provide binaries for it (of at all). good luck! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] Loading Python on my Mac
Macs come with Python pre-installed. Open a Terminal window and type python at the prompt. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG