Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fe031c6

Browse filesBrowse files
author
Kenneth Reitz
committed
crappy linux guide
1 parent efbc4f3 commit fe031c6
Copy full SHA for fe031c6

File tree

Expand file treeCollapse file tree

1 file changed

+31
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+31
-2
lines changed

‎docs/starting/install/linux.rst

Copy file name to clipboard
+31-2Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,31 @@
1-
Linux
2-
=====
1+
Installing Python on Linux
2+
==========================
3+
4+
5+
The latest version of Ubuntu, **comes with Python 2.7 out of the box**. Python 3.2 can be installed and run with the following commands::
6+
7+
$ sudo apt-get install python3-minimal
8+
$ python3
9+
10+
Older versions of Python aren't available from the official repository. However, if it's needed (for example to support legacy code), we can add an unsupported repository and install an older version of Python (2.5 in the example below)::
11+
12+
$ sudo apt-get install python-software-properties
13+
$ sudo add-apt-repository ppa:fkrull/deadsnakes
14+
$ sudo apt-get update
15+
$ sudo apt-get install python2.5
16+
17+
Installing setuptools and pip
18+
-----------------------------
19+
20+
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 ``distribute`` package and then ``pip``::
21+
22+
$ wget http://python-distribute.org/distribute_setup.py
23+
$ sudo python distribute_setup.py
24+
$ sudo easy_install pip
25+
26+
Now, most Python packages can be installed using the ``pip`` command. For example, if we wanted to install Django::
27+
28+
$ sudo pip install django
29+
30+
A full list of ``pip``'s capabilities is available by typing ``pip --help``.
31+

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.