You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installation.rst
+46-6Lines changed: 46 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,9 @@
1
1
Properly Installing Python
2
2
==========================
3
3
4
+
Mac OS X
5
+
::::::::
6
+
4
7
*Or, "Installing Python 2.7 via Homebrew".*
5
8
6
9
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,
10
13
just import your application and start playing around.
11
14
12
15
13
-
14
-
15
16
Package Manager
16
-
:::::::::::::::
17
+
---------------
17
18
18
19
While Snow Leopard comes with a large number of UNIX utilities, those
19
20
familiar with Linux systems will notice one key component missing: a
@@ -31,7 +32,7 @@ It's basic commands are **update**, **install**, and **remove**.
31
32
32
33
33
34
Python Interpreter
34
-
::::::::::::::::::
35
+
------------------
35
36
36
37
And we can now install Python 2.7: ::
37
38
@@ -46,7 +47,7 @@ bugs.
46
47
47
48
48
49
Distribute & Pip
49
-
::::::::::::::::
50
+
----------------
50
51
51
52
*Distribute* is a fantastic drop-in replacement for *easy_install* and
52
53
*setuptools*. It allows you to install and manage python packages from
@@ -74,7 +75,46 @@ If you have homebrew: ::
74
75
75
76
To install ``pip``: ::
76
77
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:
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
+
::::::::::::::
77
118
78
119
79
-
Hopefully you'll never have to use **easy_install** again.
0 commit comments