Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v9 / html / python / mac / getting-OSX.html
CommitLineData
920dae64
AT
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<link rel="STYLESHEET" href="mac.css" type='text/css' />
5<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
6<link rel='start' href='../index.html' title='Python Documentation Index' />
7<link rel="first" href="mac.html" title='Macintosh Library Modules' />
8<link rel='contents' href='contents.html' title="Contents" />
9<link rel='index' href='genindex.html' title='Index' />
10<link rel='last' href='about.html' title='About this document...' />
11<link rel='help' href='about.html' title='About this document...' />
12<link rel="next" href="IDE.html" />
13<link rel="prev" href="using.html" />
14<link rel="parent" href="using.html" />
15<link rel="next" href="node5.html" />
16<meta name='aesop' content='information' />
17<title>1.1 Getting and Installing MacPython </title>
18</head>
19<body>
20<DIV CLASS="navigation">
21<div id='top-navigation-panel' xml:id='top-navigation-panel'>
22<table align="center" width="100%" cellpadding="0" cellspacing="2">
23<tr>
24<td class='online-navigation'><a rel="prev" title="1. Using Python on"
25 href="using.html"><img src='../icons/previous.png'
26 border='0' height='32' alt='Previous Page' width='32' /></A></td>
27<td class='online-navigation'><a rel="parent" title="1. Using Python on"
28 href="using.html"><img src='../icons/up.png'
29 border='0' height='32' alt='Up One Level' width='32' /></A></td>
30<td class='online-navigation'><a rel="next" title="1.1.1 How to run"
31 href="node5.html"><img src='../icons/next.png'
32 border='0' height='32' alt='Next Page' width='32' /></A></td>
33<td align="center" width="100%">Macintosh Library Modules</td>
34<td class='online-navigation'><a rel="contents" title="Table of Contents"
35 href="contents.html"><img src='../icons/contents.png'
36 border='0' height='32' alt='Contents' width='32' /></A></td>
37<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
38 border='0' height='32' alt='Module Index' width='32' /></a></td>
39<td class='online-navigation'><a rel="index" title="Index"
40 href="genindex.html"><img src='../icons/index.png'
41 border='0' height='32' alt='Index' width='32' /></A></td>
42</tr></table>
43<div class='online-navigation'>
44<b class="navlabel">Previous:</b>
45<a class="sectref" rel="prev" href="using.html">1. Using Python on</A>
46<b class="navlabel">Up:</b>
47<a class="sectref" rel="parent" href="using.html">1. Using Python on</A>
48<b class="navlabel">Next:</b>
49<a class="sectref" rel="next" href="node5.html">1.1.1 How to run</A>
50</div>
51<hr /></div>
52</DIV>
53<!--End of Navigation Panel-->
54
55<H1><A NAME="SECTION003100000000000000000"></A><A NAME="getting-OSX"></A>
56<BR>
571.1 Getting and Installing MacPython
58</H1>
59
60<P>
61Mac OS X 10.3 comes with Python 2.3 pre-installed by Apple.
62This installation does not come with the IDE and other additions, however,
63so to get these you need to install the <b class="program">MacPython for Panther additions</b>
64from the MacPython website, <a class="url" href="http://www.cwi.nl/~jack/macpython">http://www.cwi.nl/~jack/macpython</a>.
65
66<P>
67For MacPython 2.4, or for any MacPython on earlier releases of Mac OS X,
68you need to install a full distribution from the same website.
69
70<P>
71What you get after installing is a number of things:
72
73<P>
74
75<UL>
76<LI>A <span class="file">MacPython-2.3</span> folder in your <span class="file">Applications</span>
77 folder. In here you find the PythonIDE Integrated Development Environment;
78 PythonLauncher, which handles double-clicking Python scripts from
79 the Finder; and the Package Manager.
80
81<P>
82</LI>
83<LI>A fairly standard <span class="Unix">Unix</span> commandline Python interpreter in
84 <span class="file">/usr/local/bin/python</span>, but without the usual
85 <span class="file">/usr/local/lib/python</span>.
86
87<P>
88</LI>
89<LI>A framework <span class="file">/Library/Frameworks/Python.framework</span>, where
90 all the action really is, but which you usually do not have to be aware of.
91</LI>
92</UL>
93
94<P>
95To uninstall MacPython you can simply remove these three things.
96
97<P>
98If you use the ``additions'' installer to install on top of an existing
99Apple-Python you will not get the framework and the commandline interpreter,
100as they have been installed by Apple already, in
101<span class="file">/System/Library/Frameworks/Python.framework</span> and
102<span class="file">/usr/bin/python</span>, respectively. You should in principle never modify
103or delete these, as they are Apple-controlled and may be used by Apple- or
104third-party software.
105
106<P>
107PythonIDE contains an Apple Help Viewer book called "MacPython Help"
108which you can access through its help menu. If you are completely new to
109Python you should start reading the IDE introduction in that document.
110
111<P>
112If you are familiar with Python on other <span class="Unix">Unix</span> platforms you should
113read the section on running Python scripts from the <span class="Unix">Unix</span> shell.
114
115<P>
116
117<p><br /></p><hr class='online-navigation' />
118<div class='online-navigation'>
119<!--Table of Child-Links-->
120<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a>
121
122<UL CLASS="ChildLinks">
123<LI><A href="node5.html">1.1.1 How to run a Python script</a>
124<LI><A href="osx-gui-scripts.html">1.1.2 Running scripts with a GUI</a>
125<LI><A href="node7.html">1.1.3 configuration</a>
126</ul>
127<!--End of Table of Child-Links-->
128</div>
129
130<DIV CLASS="navigation">
131<div class='online-navigation'>
132<p></p><hr />
133<table align="center" width="100%" cellpadding="0" cellspacing="2">
134<tr>
135<td class='online-navigation'><a rel="prev" title="1. Using Python on"
136 href="using.html"><img src='../icons/previous.png'
137 border='0' height='32' alt='Previous Page' width='32' /></A></td>
138<td class='online-navigation'><a rel="parent" title="1. Using Python on"
139 href="using.html"><img src='../icons/up.png'
140 border='0' height='32' alt='Up One Level' width='32' /></A></td>
141<td class='online-navigation'><a rel="next" title="1.1.1 How to run"
142 href="node5.html"><img src='../icons/next.png'
143 border='0' height='32' alt='Next Page' width='32' /></A></td>
144<td align="center" width="100%">Macintosh Library Modules</td>
145<td class='online-navigation'><a rel="contents" title="Table of Contents"
146 href="contents.html"><img src='../icons/contents.png'
147 border='0' height='32' alt='Contents' width='32' /></A></td>
148<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
149 border='0' height='32' alt='Module Index' width='32' /></a></td>
150<td class='online-navigation'><a rel="index" title="Index"
151 href="genindex.html"><img src='../icons/index.png'
152 border='0' height='32' alt='Index' width='32' /></A></td>
153</tr></table>
154<div class='online-navigation'>
155<b class="navlabel">Previous:</b>
156<a class="sectref" rel="prev" href="using.html">1. Using Python on</A>
157<b class="navlabel">Up:</b>
158<a class="sectref" rel="parent" href="using.html">1. Using Python on</A>
159<b class="navlabel">Next:</b>
160<a class="sectref" rel="next" href="node5.html">1.1.1 How to run</A>
161</div>
162</div>
163<hr />
164<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
165</DIV>
166<!--End of Navigation Panel-->
167<ADDRESS>
168See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
169</ADDRESS>
170</BODY>
171</HTML>