forked from joshgachnang/diveintopython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindows.html
More file actions
165 lines (159 loc) · 11.4 KB
/
windows.html
File metadata and controls
165 lines (159 loc) · 11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>1.2. Python on Windows</title>
<link rel="stylesheet" href="/css/diveintopython.css" type="text/css" />
<link rev="made" href="josh@servercobra.com" />
<meta name="generator" content="DocBook XSL Stylesheets V1.52.2" />
<meta name="keywords" content="Python, Dive Into Python, tutorial, object-oriented, programming, documentation, book, free" />
<meta name="description" content="Python from novice to pro" />
<link rel="home" href="http://www.diveintopython.net/" title="Dive Into Python" />
<link rel="up" href="http://www.diveintopython.net/" title="Chapter 1. Installing Python" />
<link rel="previous" href="http://www.diveintopython.net/" title="Chapter 1. Installing Python" />
<link rel="next" href="http://www.diveintopython.net/" title="1.3. Python on Mac OS X" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-9740779-18']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script></head>
<body>
<style type="text/css">body{margin-top:0!important;padding-top:0!important;min-width:800px!important;}#wm-ipp a:hover{text-decoration:underline!important;}</style>
<table id="Header" width="100%" border="0" cellpadding="0" cellspacing="0" summary="">
<tr>
<td id="breadcrumb" colspan="5" align="left" valign="top">You are here: <a href="http://www.diveintopython.net/index.html">Home</a> > <a href="http://www.diveintopython.net/toc/index.html">Dive Into Python</a> > <a href="http://www.diveintopython.net/installing_python/index.html">Installing Python</a> > <span class="thispage">Python on Windows</span></td>
<td id="navigation" align="right" valign="top"> <a href="http://www.diveintopython.net/installing_python/index.html" title="Prev: “Installing Python”"><<</a> <a href="http://www.diveintopython.net/installing_python/macosx.html" title="Next: “Python on Mac OS X”">>></a></td>
</tr>
<tr>
<td colspan="3" id="logocontainer">
<h1 id="logo"><a href="http://www.diveintopython.net/index.html" accesskey="1">Dive Into Python</a></h1>
<p id="tagline">Python from novice to pro</p>
</td>
<td colspan="3" align="right">
<form id="search" method="GET" action="http://www.google.com/custom">
<p><label for="q" accesskey="4">Find: </label><input type="text" id="q" name="q" size="20" maxlength="255" value=" " /> <input type="submit" value="Search" /><input type="hidden" name="cof" value="LW:752;L:http://diveintopython.org/images/diveintopython.png;LH:42;AH:left;GL:0;AWFID:3ced2bb1f7f1b212;" /><input type="hidden" name="domains" value="diveintopython.org" /><input type="hidden" name="sitesearch" value="diveintopython.org" /></p>
</form>
</td>
</tr>
</table>
<div class="section" lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title"><a name="install.windows"></a>1.2. <span class="application">Python</span> on Windows
</h2>
</div>
</div>
<div></div>
</div>
<div class="abstract">
<p>On Windows, you have a couple choices for installing <span class="application">Python</span>.
</p>
</div>
<p>ActiveState makes a Windows installer for <span class="application">Python</span> called <span class="application">ActivePython</span>, which includes a complete version of <span class="application">Python</span>, an <span class="acronym">IDE</span> with a <span class="application">Python</span>-aware code editor, plus some Windows extensions for <span class="application">Python</span> that allow complete access to Windows-specific services, <span class="acronym">API</span>s, and the Windows Registry.
</p>
<p><span class="application">ActivePython</span> is freely downloadable, although it is not open source. It is the <span class="acronym">IDE</span> I used to learn <span class="application">Python</span>, and I recommend you try it unless you have a specific reason not to. One such reason might be that ActiveState is generally
several months behind in updating their <span class="application">ActivePython</span> installer when new version of <span class="application">Python</span> are released. If you absolutely need the latest version of <span class="application">Python</span> and <span class="application">ActivePython</span> is still a version behind as you read this, you'll want to use the second option for installing <span class="application">Python</span> on Windows.
</p>
<p>The second option is the “<span class="quote">official</span>” <span class="application">Python</span> installer, distributed by the people who develop <span class="application">Python</span> itself. It is freely downloadable and open source, and it is always current with the latest version of <span class="application">Python</span>.
</p>
<div class="procedure">
<h3 class="title">Procedure 1.1. Option 1: Installing <span class="application">ActivePython</span></h3>
<p>Here is the procedure for installing <span class="application">ActivePython</span>:
</p>
<ol type="1">
<li>
<p>Download <span class="application">ActivePython</span> from <a href="http://www.diveintopython.net/Products/ActivePython/">http://www.activestate.com/Products/ActivePython/</a>.
</p>
</li>
<li>
<p>If you are using Windows 95, Windows 98, or Windows ME, you will also need to download and install <a href="http://www.diveintopython.net/download/WindowsInstaller/Install/2.0/W9XMe/EN-US/InstMsiA.exe">Windows Installer 2.0</a> before installing <span class="application">ActivePython</span>.
</p>
</li>
<li>
<p>Double-click the installer, <tt class="filename">ActivePython-2.2.2-224-win32-ix86.msi</tt>.
</p>
</li>
<li>
<p>Step through the installer program.</p>
</li>
<li>
<p>If space is tight, you can do a custom installation and deselect the documentation, but I don't recommend this unless you
absolutely can't spare the 14MB.
</p>
</li>
<li>
<p>After the installation is complete, close the installer and choose <span class="guimenu">Start</span>-><span class="guimenuitem">Programs</span>-><span class="guimenuitem">ActiveState ActivePython 2.2</span>-><span class="guimenuitem">PythonWin IDE</span>. You'll see something like the following:
</p>
</li>
</ol>
</div>
<div class="informalexample"><pre class="screen">
<span class="computeroutput">PythonWin 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond (mhammond@skippinet.com.au) -
see 'Help/About PythonWin' for further copyright information.</span>
<tt class="prompt">>>> </tt>
</pre></div>
<div class="procedure">
<h3 class="title">Procedure 1.2. Option 2: Installing <span class="application">Python</span> from <a href="http://www.diveintopython.net/" title="Python language home page">Python.org</a></h3>
<ol type="1">
<li>
<p>Download the latest <span class="application">Python</span> Windows installer by going to <a href="http://www.diveintopython.net/ftp/python/">http://www.python.org/ftp/python/</a> and selecting the highest version number listed, then downloading the <tt class="literal">.exe</tt> installer.
</p>
</li>
<li>
<p>Double-click the installer, <tt class="filename">Python-2.xxx.yyy.exe</tt>. The name will depend on the version of <span class="application">Python</span> available when you read this.
</p>
</li>
<li>
<p>Step through the installer program.</p>
</li>
<li>
<p>If disk space is tight, you can deselect the HTMLHelp file, the utility scripts (<tt class="filename">Tools/</tt>), and/or the test suite (<tt class="filename">Lib/test/</tt>).
</p>
</li>
<li>
<p>If you do not have administrative rights on your machine, you can select <span class="guibutton">Advanced Options</span>, then choose <span class="guilabel">Non-Admin Install</span>. This just affects where Registry entries and Start menu shortcuts are created.
</p>
</li>
<li>
<p>After the installation is complete, close the installer and select <span class="guimenu">Start</span>-><span class="guimenuitem">Programs</span>-><span class="guimenuitem">Python 2.3</span>-><span class="guimenuitem">IDLE (Python GUI)</span>. You'll see something like the following:
</p>
</li>
</ol>
</div>
<div class="informalexample"><pre class="screen">
<span class="computeroutput">Python 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************
IDLE 1.0</span>
<tt class="prompt">>>> </tt>
</pre></div>
</div>
<table class="Footer" width="100%" border="0" cellpadding="0" cellspacing="0" summary="">
<tr>
<td width="35%" align="left"><br /><a class="NavigationArrow" href="http://www.diveintopython.net/installing_python/index.html"><< Installing Python</a></td>
<td width="30%" align="center"><br /> <span class="divider">|</span> <a href="http://www.diveintopython.net/installing_python/index.html#install.choosing" title="1.1. Which Python is right for you?">1</a> <span class="divider">|</span> <span class="thispage">2</span> <span class="divider">|</span> <a href="http://www.diveintopython.net/installing_python/macosx.html" title="1.3. Python on Mac OS X">3</a> <span class="divider">|</span> <a href="http://www.diveintopython.net/installing_python/macos9.html" title="1.4. Python on Mac OS 9">4</a> <span class="divider">|</span> <a href="http://www.diveintopython.net/installing_python/redhat.html" title="1.5. Python on RedHat Linux">5</a> <span class="divider">|</span> <a href="http://www.diveintopython.net/installing_python/debian.html" title="1.6. Python on Debian GNU/Linux">6</a> <span class="divider">|</span> <a href="http://www.diveintopython.net/installing_python/source.html" title="1.7. Python Installation from Source">7</a> <span class="divider">|</span> <a href="http://www.diveintopython.net/installing_python/shell.html" title="1.8. The Interactive Shell">8</a> <span class="divider">|</span> <a href="http://www.diveintopython.net/installing_python/summary.html" title="1.9. Summary">9</a> <span class="divider">|</span>
</td>
<td width="35%" align="right"><br /><a class="NavigationArrow" href="http://www.diveintopython.net/installing_python/macosx.html">Python on Mac OS X >></a></td>
</tr>
<tr>
<td colspan="3"><br /></td>
</tr>
</table>
<div class="Footer">
<p class="copyright">Copyright © 2000, 2001, 2002, 2003, 2004 <a href="mailto:josh@servercobra.com">Mark Pilgrim</a></p>
</div>
</body>
</html>