Skip to content

Commit d24bf1b

Browse files
author
Kenneth Reitz
committed
installation updates
1 parent b9d6af4 commit d24bf1b

1 file changed

Lines changed: 46 additions & 6 deletions

File tree

docs/installation.rst

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Properly Installing Python
22
==========================
33

4+
Mac OS X
5+
::::::::
6+
47
*Or, "Installing Python 2.7 via Homebrew".*
58

69
One of the reasons everybody loves Python is the interactive shell. It
@@ -10,10 +13,8 @@ interactive shell, because it does not require any specific setup upfront,
1013
just import your application and start playing around.
1114

1215

13-
14-
1516
Package Manager
16-
:::::::::::::::
17+
---------------
1718

1819
While Snow Leopard comes with a large number of UNIX utilities, those
1920
familiar with Linux systems will notice one key component missing: a
@@ -31,7 +32,7 @@ It's basic commands are **update**, **install**, and **remove**.
3132
3233
3334
Python Interpreter
34-
::::::::::::::::::
35+
------------------
3536

3637
And we can now install Python 2.7: ::
3738

@@ -46,7 +47,7 @@ bugs.
4647

4748

4849
Distribute & Pip
49-
::::::::::::::::
50+
----------------
5051

5152
*Distribute* is a fantastic drop-in replacement for *easy_install* and
5253
*setuptools*. It allows you to install and manage python packages from
@@ -74,7 +75,46 @@ If you have homebrew: ::
7475

7576
To install ``pip``: ::
7677

78+
Hopefully you'll never have to use **easy_install** again.
79+
80+
81+
82+
Windows
83+
:::::::
84+
85+
86+
87+
Prerequisites:
88+
--------------
89+
90+
* Python2.7 (x86) from Python.org
91+
* Microsoft Visual Studio
92+
93+
94+
Step 1: Install Distribute & Pip
95+
--------------------------------
96+
97+
**Distribute** is a fantastic drop-in replacment for **easy_install** and **setuptools**. It allows you to install and manage python packages from PyPi, amongst a few other sources.
98+
99+
To install it, run the python script available here:
100+
<http://python-distribute.org/distribute_setup.py>
101+
102+
Make sure that `C:\Python27\`, and `C:\Python27\Scripts` are in your PATH.
103+
104+
**easy_install** is considered by many to be a deprecated system, so we will install it's replacment: **pip**. Pip allows for uninstallation of packages, and is actively maintained, unlike setuptool's easy_install.
105+
106+
To install pip, simply run:
107+
108+
easy_install pip
109+
110+
111+
Linux (Ubuntu)
112+
::::::::::::::
113+
114+
115+
116+
Linux (Manual)
117+
::::::::::::::
77118

78119

79-
Hopefully you'll never have to use **easy_install** again.
80120

0 commit comments

Comments
 (0)