mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 15:00:18 +00:00
100 lines
7.5 KiB
HTML
100 lines
7.5 KiB
HTML
<!DOCTYPE html>
|
|
<head>
|
|
<meta charset=utf-8>
|
|
<title>Installing Python - Dive into Python 3</title>
|
|
<!--[if IE]><script src=j/html5.js></script><![endif]-->
|
|
<link rel=stylesheet href=dip3.css>
|
|
<style>
|
|
body{counter-reset:h1 0}
|
|
</style>
|
|
<link rel=stylesheet type=text/css media='only screen and (max-device-width: 480px)' href=mobile.css>
|
|
<link rel=stylesheet media=print href=print.css>
|
|
<meta name=viewport content='initial-scale=1.0'>
|
|
</head>
|
|
<form action=http://www.google.com/cse><div><input type=hidden name=cx value=014021643941856155761:l5eihuescdw><input type=hidden name=ie value=UTF-8> <input name=q size=25> <input type=submit name=sa value=Search></div></form>
|
|
<p>You are here: <a href=index.html>Home</a> <span class=u>‣</span> <a href=table-of-contents.html#installing-python>Dive Into Python 3</a> <span class=u>‣</span>
|
|
<p id=level>Difficulty level: <span class=u title=novice>♦♢♢♢♢</span>
|
|
<h1>Installing Python</h1>
|
|
<blockquote class=q>
|
|
<p><span class=u>❝</span> <i lang=la>Tempora mutantur nos et mutamur in illis.</i> (Times change, and we change with them.) <span class=u>❞</span><br>— ancient Roman proverb
|
|
</blockquote>
|
|
<p id=toc>
|
|
<h2 id=divingin>Diving in</h2>
|
|
<p class=f>Welcome to Python 3. Let's dive in. In this chapter, you'll install the version of Python 3 that's right for you.
|
|
|
|
<h2 id=which>Which Python Is Right For You?</h2>
|
|
|
|
<p>The first thing you need to do with Python is install it. Or do you?
|
|
|
|
<p>If you're using an account on a hosted server, your ISP may have already installed Python 3. Most popular GNU/Linux distributions come with Python 2 in the default installation; a small but growing number of distributions also include Python 3. (As you’ll see in this chapter, you can have more than one version of Python installed on your computer.) Mac OS X includes a command-line version of Python 2, although you'll probably want to install a version that includes a more Mac-like graphical interface.
|
|
<p>Windows does not come with any version of Python, but don’t despair! There are several ways to point-and-click your way to Python on Windows.
|
|
<p>What's more, Python programs written on one platform can run on <em>any</em> supported platform. For instance, I regularly develop Python programs on Windows and later deploy them on Linux.
|
|
<p>So back to the question that started this section, “Which Python is right for you?” The answer is whichever one runs on the computer you already have.
|
|
|
|
<h2 id=windows>Installing on Microsoft Windows</h2>
|
|
|
|
<p>FIXME
|
|
<p><img src=i/win-install-0-security-warning.png width=409 height=309 alt='[Windows dialog: open file security warning]'>
|
|
<p><img src=i/win-install-1-all-users-or-just-me.png width=499 height=432 alt='[Python installer: select whether to install Python 3.1 for all users of this computer]'>
|
|
<p><img src=i/win-install-2-destination-directory.png width=499 height=432 alt='[Python installer: select destination directory]'>
|
|
<p><img src=i/win-install-3-customize.png width=499 height=432 alt='[Python installer: customize Python 3.1]'>
|
|
<p><img src=i/win-install-3a-disk-usage.png width=499 height=432 alt='[Python installer: disk space requirements]'>
|
|
<p><img src=i/win-install-3b-test-suite.png width=499 height=432 alt='[Python installer: removing Test Suite option will save 7908KB on your hard drive]'>
|
|
<p><img src=i/win-install-4-copying.png width=499 height=432 alt='[Python installer: progress meter]'>
|
|
<p><img src=i/win-install-5-finish.png width=499 height=432 alt='[Python installer: installation completed. Special Windows thanks to Mark Hammond, without whose years of freely shared Windows expertise, Python for Windows would still be Python for DOS.]'>
|
|
<p><img src=i/win-interactive-shell.png width=677 height=715 alt='[Windows Python Shell, a graphical interactive shell for Python]'>
|
|
|
|
<h2 id=macosx>Installing on Mac OS X</h2>
|
|
|
|
<p>FIXME
|
|
<p><img src=i/mac-install-0-dmg-contents.png width=752 height=438 alt='[contents of Python installer disk image]'>
|
|
<p><img src=i/mac-install-1-welcome.png width=622 height=442 alt='[Python installer: welcome screen]'>
|
|
<p><img src=i/mac-install-2-information.png width=622 height=442 alt='[Python installer: information about supported architectures, disk space, and acceptable destination folders]'>
|
|
<p><img src=i/mac-install-3-license.png width=622 height=442 alt='[Python installer: software license agreement]'>
|
|
<p><img src=i/mac-install-4-license-dialog.png width=622 height=442 alt='[Python installer: dialog to accept license agreement]'>
|
|
<p><img src=i/mac-install-5-standard-install.png width=622 height=442 alt='[Python installer: standard install screen]'>
|
|
<p><img src=i/mac-install-6-custom-install.png width=622 height=442 alt='[Python installer: custom install screen]'>
|
|
<p><img src=i/mac-install-7-admin-password.png width=622 height=457 alt='[Python installer: dialog to enter administrative password]'>
|
|
<p><img src=i/mac-install-8-progress.png width=622 height=442 alt='[Python installer: progress meter]'>
|
|
<p><img src=i/mac-install-9-succeeded.png width=622 height=442 alt='[Python installer: install succeeded]'>
|
|
<p><img src=i/mac-install-10-application-folder.png width=488 height=482 alt='[contents of /Applications/Python 3.1/ folder]'>
|
|
<p><img src=i/mac-interactive-shell.png width=522 height=538 alt='[Mac Python Shell, a graphical interactive shell for Python]'>
|
|
<p><img src=i/mac-pythonlauncher.png width=432 height=536 alt='[Python Launcher preferences window]'>
|
|
|
|
<h2 id=ubuntu>Installing on Ubuntu Linux</h2>
|
|
|
|
<p>FIXME
|
|
<p><img src=i/ubu-install-0-add-remove-programs.png width=920 height=473 alt='[Add/Remove: Canonical-maintained applications]'>
|
|
<p><img src=i/ubu-install-1-all-open-source-applications.png width=920 height=473 alt='[Add/Remove: all open source applications]'>
|
|
<p><img src=i/ubu-install-2-search-python-3.png width=920 height=473 alt='[Add/Remove: search for Python 3]'>
|
|
<p><img src=i/ubu-install-3-select-python-3.png width=920 height=473 alt='[Add/Remove: select Python 3.0 package]'>
|
|
<p><img src=i/ubu-install-4-select-idle.png width=920 height=473 alt='[Add/Remove: select IDLE for Python 3.0 package]'>
|
|
<p><img src=i/ubu-install-5-apply-changes.png width=635 height=364 alt='[Add/Remove: apply changes]'>
|
|
<p><img src=i/ubu-install-6-download-progress.png width=287 height=211 alt='[Add/Remove: download progress meter]'>
|
|
<p><img src=i/ubu-install-7-install-progress.png width=486 height=258 alt='[Add/Remove: installation progress meter]'>
|
|
<p><img src=i/ubu-install-8-success.png width=591 height=296 alt='[Add/Remove: new applications have been installed]'>
|
|
<p><img src=i/ubu-interactive-shell.png width=679 height=687 alt='[Linux Python Shell, a graphical interactive shell for Python]'>
|
|
|
|
|
|
<h2 id=other>Installing on Other Platforms</h2>
|
|
|
|
<p>FIXME
|
|
|
|
<h2 id=editors>Python Editors and IDEs</h2>
|
|
|
|
<p>FIXME
|
|
<pre>
|
|
http://wiki.python.org/moin/PythonEditors
|
|
http://wiki.python.org/moin/IntegratedDevelopmentEnvironments
|
|
http://pydev.sourceforge.net/
|
|
http://www.activestate.com/komodo/
|
|
http://www.activestate.com/activepython/
|
|
</pre>
|
|
|
|
<p class=v><a href=whats-new.html rel=prev title='back to “What’s New In Dive Into Python 3”'><span class=u>☜</span></a> <a href=your-first-python-program.html rel=next title='onward to “Your First Python Program”'><span class=u>☞</span></a>
|
|
|
|
<p class=c>© 2001–9 <a href=about.html>Mark Pilgrim</a>
|
|
<script src=j/jquery.js></script>
|
|
<script src=j/prettify.js></script>
|
|
<script src=j/dip3.js></script>
|