Skip to content

Commit 94b9256

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

1 file changed

Lines changed: 20 additions & 12 deletions

File tree

docs/installation.rst

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Mac OS X
66

77
*Or, "Installing Python 2.7 via Homebrew".*
88

9-
One of the reasons everybody loves Python is the interactive shell. It
9+
One of the reasons everybody loves Python is the interactive shell. It
1010
basically allows you to execute Python commands in real time and
1111
immediately get results back. Flask itself does not come with an
1212
interactive shell, because it does not require any specific setup upfront,
@@ -22,7 +22,7 @@ package manager. Mxcl's *Homebrew* is the answer.
2222

2323
To install Homebrew, simply run: ::
2424

25-
$ ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)"
25+
$ ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)"
2626

2727

2828
It's basic commands are **update**, **install**, and **remove**.
@@ -36,7 +36,7 @@ Python Interpreter
3636

3737
And we can now install Python 2.7: ::
3838

39-
$ brew install python --framework
39+
$ brew install python --framework
4040

4141

4242
The ``--framework`` option tells Homebrew to compile a Framework-style Python build, rather than a UNIX-style build. The outdated version of Python that Snow Leopard comes packaged with
@@ -62,14 +62,14 @@ To install *pip* and Distribute's *easy_install*:
6262

6363
If you have homebrew: ::
6464

65-
$ brew install pip
66-
65+
$ brew install pip
66+
6767
...And, if you're a masochist: ::
6868

69-
$ curl -O http://python-distribute.org/distribute_setup.py
70-
$ python distribute_setup.py
69+
$ curl -O http://python-distribute.org/distribute_setup.py
70+
$ python distribute_setup.py
7171

72-
$ easy_install pip
72+
$ easy_install pip
7373

7474

7575

@@ -78,6 +78,14 @@ To install ``pip``: ::
7878
Hopefully you'll never have to use **easy_install** again.
7979

8080

81+
Updating Python
82+
---------------
83+
84+
Homebrew makes it simple. ::
85+
86+
$ brew update
87+
$ brew install --force python
88+
8189

8290
Windows
8391
:::::::
@@ -97,15 +105,15 @@ Step 1: Install Distribute & Pip
97105
**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.
98106

99107
To install it, run the python script available here:
100-
<http://python-distribute.org/distribute_setup.py>
108+
<http://python-distribute.org/distribute_setup.py>
101109

102-
Make sure that `C:\Python27\`, and `C:\Python27\Scripts` are in your PATH.
110+
Make sure that ```C:\Python27\```, and ```C:\Python27\Scripts``` are in your PATH.
103111

104112
**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.
105113

106-
To install pip, simply run:
114+
To install pip, simply run: ::
107115

108-
easy_install pip
116+
$ easy_install pip
109117

110118

111119
Linux (Ubuntu)

0 commit comments

Comments
 (0)