Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / html / python / mac / getting-OSX.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link rel="STYLESHEET" href="mac.css" type='text/css' />
<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
<link rel='start' href='../index.html' title='Python Documentation Index' />
<link rel="first" href="mac.html" title='Macintosh Library Modules' />
<link rel='contents' href='contents.html' title="Contents" />
<link rel='index' href='genindex.html' title='Index' />
<link rel='last' href='about.html' title='About this document...' />
<link rel='help' href='about.html' title='About this document...' />
<link rel="next" href="IDE.html" />
<link rel="prev" href="using.html" />
<link rel="parent" href="using.html" />
<link rel="next" href="node5.html" />
<meta name='aesop' content='information' />
<title>1.1 Getting and Installing MacPython </title>
</head>
<body>
<DIV CLASS="navigation">
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="1. Using Python on"
href="using.html"><img src='../icons/previous.png'
border='0' height='32' alt='Previous Page' width='32' /></A></td>
<td class='online-navigation'><a rel="parent" title="1. Using Python on"
href="using.html"><img src='../icons/up.png'
border='0' height='32' alt='Up One Level' width='32' /></A></td>
<td class='online-navigation'><a rel="next" title="1.1.1 How to run"
href="node5.html"><img src='../icons/next.png'
border='0' height='32' alt='Next Page' width='32' /></A></td>
<td align="center" width="100%">Macintosh Library Modules</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
href="contents.html"><img src='../icons/contents.png'
border='0' height='32' alt='Contents' width='32' /></A></td>
<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
border='0' height='32' alt='Module Index' width='32' /></a></td>
<td class='online-navigation'><a rel="index" title="Index"
href="genindex.html"><img src='../icons/index.png'
border='0' height='32' alt='Index' width='32' /></A></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="using.html">1. Using Python on</A>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="using.html">1. Using Python on</A>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="node5.html">1.1.1 How to run</A>
</div>
<hr /></div>
</DIV>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION003100000000000000000"></A><A NAME="getting-OSX"></A>
<BR>
1.1 Getting and Installing MacPython
</H1>
<P>
Mac OS X 10.3 comes with Python 2.3 pre-installed by Apple.
This installation does not come with the IDE and other additions, however,
so to get these you need to install the <b class="program">MacPython for Panther additions</b>
from the MacPython website, <a class="url" href="http://www.cwi.nl/~jack/macpython">http://www.cwi.nl/~jack/macpython</a>.
<P>
For MacPython 2.4, or for any MacPython on earlier releases of Mac OS X,
you need to install a full distribution from the same website.
<P>
What you get after installing is a number of things:
<P>
<UL>
<LI>A <span class="file">MacPython-2.3</span> folder in your <span class="file">Applications</span>
folder. In here you find the PythonIDE Integrated Development Environment;
PythonLauncher, which handles double-clicking Python scripts from
the Finder; and the Package Manager.
<P>
</LI>
<LI>A fairly standard <span class="Unix">Unix</span> commandline Python interpreter in
<span class="file">/usr/local/bin/python</span>, but without the usual
<span class="file">/usr/local/lib/python</span>.
<P>
</LI>
<LI>A framework <span class="file">/Library/Frameworks/Python.framework</span>, where
all the action really is, but which you usually do not have to be aware of.
</LI>
</UL>
<P>
To uninstall MacPython you can simply remove these three things.
<P>
If you use the ``additions'' installer to install on top of an existing
Apple-Python you will not get the framework and the commandline interpreter,
as they have been installed by Apple already, in
<span class="file">/System/Library/Frameworks/Python.framework</span> and
<span class="file">/usr/bin/python</span>, respectively. You should in principle never modify
or delete these, as they are Apple-controlled and may be used by Apple- or
third-party software.
<P>
PythonIDE contains an Apple Help Viewer book called "MacPython Help"
which you can access through its help menu. If you are completely new to
Python you should start reading the IDE introduction in that document.
<P>
If you are familiar with Python on other <span class="Unix">Unix</span> platforms you should
read the section on running Python scripts from the <span class="Unix">Unix</span> shell.
<P>
<p><br /></p><hr class='online-navigation' />
<div class='online-navigation'>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a>
<UL CLASS="ChildLinks">
<LI><A href="node5.html">1.1.1 How to run a Python script</a>
<LI><A href="osx-gui-scripts.html">1.1.2 Running scripts with a GUI</a>
<LI><A href="node7.html">1.1.3 configuration</a>
</ul>
<!--End of Table of Child-Links-->
</div>
<DIV CLASS="navigation">
<div class='online-navigation'>
<p></p><hr />
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="1. Using Python on"
href="using.html"><img src='../icons/previous.png'
border='0' height='32' alt='Previous Page' width='32' /></A></td>
<td class='online-navigation'><a rel="parent" title="1. Using Python on"
href="using.html"><img src='../icons/up.png'
border='0' height='32' alt='Up One Level' width='32' /></A></td>
<td class='online-navigation'><a rel="next" title="1.1.1 How to run"
href="node5.html"><img src='../icons/next.png'
border='0' height='32' alt='Next Page' width='32' /></A></td>
<td align="center" width="100%">Macintosh Library Modules</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
href="contents.html"><img src='../icons/contents.png'
border='0' height='32' alt='Contents' width='32' /></A></td>
<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
border='0' height='32' alt='Module Index' width='32' /></a></td>
<td class='online-navigation'><a rel="index" title="Index"
href="genindex.html"><img src='../icons/index.png'
border='0' height='32' alt='Index' width='32' /></A></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="using.html">1. Using Python on</A>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="using.html">1. Using Python on</A>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="node5.html">1.1.1 How to run</A>
</div>
</div>
<hr />
<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>