@@ -9,19 +9,36 @@ Installing
9
9
There are many different ways to install matplotlib, and the best way
10
10
depends on what operating system you are using, what you already have
11
11
installed, and how you want to use it. To avoid wading through all
12
- the details (and potential complications) on this page, the easiest
13
- thing for you to do is use one of the pre-packaged python
14
- distributions that already provide matplotlib built-in. The Continuum.io
15
- Python distribution `(Anaconda)
16
- <https://store.continuum.io/cshop/anaconda/>`_ and the Enthought
17
- distribution `(Canopy) <https://www.enthought.com/products/canopy/>`_
18
- are both excellent choices that "just work" out of the box for any
19
- platform. Both of these packages include matplotlib and
20
- *lots* of other useful tools.
21
- Another excellent alternative for Windows users is `Python (x, y)
22
- <https://code.google.com/p/pythonxy>`_ . matplotlib is also packaged for almost
23
- every major Linux distribution. So if you are on Linux, your package
24
- manager will probably provide matplotlib prebuilt.
12
+ the details (and potential complications) on this page, there are several
13
+ convenient options.
14
+
15
+ Most platforms : scientific Python distributions
16
+ ================================================
17
+
18
+ The first option is to use one of the pre-packaged python distributions that
19
+ already provide matplotlib built-in. The Continuum.io Python distribution
20
+ `(Anaconda) <https://store.continuum.io/cshop/anaconda/>`_ and the Enthought
21
+ distribution `(Canopy) <https://www.enthought.com/products/canopy/>`_ are both
22
+ excellent choices that "just work" out of the box for Windows, OSX and common
23
+ Linux platforms. Both of these distributions include matplotlib and *lots* of
24
+ other useful tools. Another excellent alternative for Windows users is
25
+ `Python (x, y) <https://code.google.com/p/pythonxy>`_ .
26
+
27
+ Linux : using your package manager
28
+ ==================================
29
+
30
+ If you are on Linux, you might prefer to use your package manager. matplotlib
31
+ is packaged for almost every major Linux distribution.
32
+
33
+ * Debian / Ubuntu : ``sudo apt-get install python-matplotlib``
34
+ * Fedora / Redhat : ``sudo yum install python-matplotlib``
35
+
36
+ Mac OSX - using pip
37
+ ===================
38
+
39
+ If you are on Mac OSX you can probably install matplotlib binaries using the
40
+ standard Python installation program `pip <https://pypi.python.org/pip>`_.
41
+ See :ref:`installing-osx-binaries`.
25
42
26
43
Manually installing pre-built packages
27
44
======================================
@@ -36,7 +53,7 @@ on your machine, and if not, install it. The official python builds
36
53
are available for download `here <http://www.python.org/download>`_,
37
54
but OS X users please read :ref:`which-python-for-osx`.
38
55
39
- Once you have python up and running, you will need to install `numpy
56
+ Once you have Python up and running, you will need to install `numpy
40
57
<http://www.numpy.org/>`_. numpy provides high-performance array data
41
58
structures and mathematical functions, and is a requirement for
42
59
matplotlib. You can test your progress::
@@ -87,7 +104,6 @@ python console, there are some issues relating to user interface
87
104
toolkits and interactive settings that are discussed in
88
105
:ref:`mpl-shell`.
89
106
90
-
91
107
Installing on Windows
92
108
---------------------
93
109
@@ -207,7 +223,7 @@ manager on Linux, you may need to install the development packages
207
223
208
224
.. note::
209
225
210
- If you are on debian/ubuntu , you can get all the dependencies
226
+ If you are on Debian/Ubuntu , you can get all the dependencies
211
227
required to build matplotlib with::
212
228
213
229
sudo apt-get build-dep python-matplotlib
0 commit comments