Skip to content

Commit d0dfe25

Browse files
committed
Documented installation of pip in Ubuntu.
1 parent a39a16a commit d0dfe25

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/starting/installation.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ To install pip, simply run: ::
121121
Linux (Ubuntu)
122122
::::::::::::::
123123

124-
Natty Narwhal, the latest version of Ubuntu, comes with Python 2.7 out of the box. Python 3.0 can be installed and run with the following commands::
124+
Natty Narwhal, the latest version of Ubuntu, **comes with Python 2.7 out of the box**. Python 3.0 can be installed and run with the following commands::
125125

126126
sudo apt-get install python3-minimal
127127
python3
@@ -132,7 +132,21 @@ Older versions of Python aren't available from the official repository. However,
132132
$ sudo apt-get update
133133
$ sudo apt-get install python2.5
134134

135+
Installing setuptools and pip
136+
-----------------------------
135137

138+
While Python has an extensive standard library, the set of packages available from the Internet is even more extensive. In order to install them easily, we'll install the ``setuptools`` package and ``pip`` installer::
139+
140+
$ sudo apt-get install python-setuptools
141+
$ sudo easy_install virtualenv
142+
143+
(You could get ``pip`` by itself by typing ``sudo easy_install pip``, but it comes with ``virtualenv``, which you'll most likely use later anyway.)
144+
145+
Now, most Python packages can be installed using the ``pip`` command. For example, if we wanted to install Django::
146+
147+
$ sudo pip install django
148+
149+
A full list of ``pip``'s capabilities is available by typing ``pip --help``.
136150

137151
Linux (Manual)
138152
::::::::::::::

0 commit comments

Comments
 (0)