@@ -19,52 +19,29 @@ Installing
19
19
Installing an official release
20
20
==============================
21
21
22
- Matplotlib and most of its dependencies are all available as wheel packages for
23
- macOS, Windows and Linux distributions::
22
+ Matplotlib and most of its dependencies are all available as wheel
23
+ packages for macOS, Windows and Linux distributions::
24
24
25
- pip install -U matplotlib
25
+ python -m pip install -U pip
26
+ python -m pip install -U matplotlib
26
27
28
+ .. note ::
27
29
28
- Third-party distributions of Matplotlib
29
- =======================================
30
-
31
- Scientific Python distributions: Conda, Canopy...
32
- -------------------------------------------------
33
-
34
- The first option is to use one of the pre-packaged Python distributions that
35
- already provide Matplotlib built-in. Both `Anaconda
36
- <https://www.continuum.io/downloads/> `_ and `Canopy
37
- <https://www.enthought.com/products/canopy/> `_ are both excellent choices that
38
- "just work" out of the box for Windows, macOS and common Linux platforms. Both
39
- of these distributions include Matplotlib and *lots * of other useful tools.
30
+ The following backends work out of the box: Agg, ps, pdf, svg and TkAgg.
40
31
41
- Linux : using your package manager
42
- ----------------------------------
32
+ For support of other GUI frameworks, LaTeX rendering, saving
33
+ animations and a larger selection of file formats, you may need to
34
+ install :ref: `additional dependencies <install_requirements >`.
43
35
44
- If you are on Linux, you might prefer to use your package manager. Matplotlib
45
- is packaged for almost every major Linux distribution.
46
-
47
- * Debian / Ubuntu: ``sudo apt-get install python-matplotlib ``
48
- * Fedora: ``sudo dnf install python-matplotlib ``
49
- * Red Hat: ``sudo yum install python-matplotlib ``
50
- * Arch: ``sudo pacman -S python-matplotlib ``
36
+ Although not required, we suggest also installing ``IPython `` for
37
+ interactive use. To easily install a complete Scientific Python
38
+ stack, see :ref: `install_scipy_dists ` below.
51
39
52
40
.. _installing_windows :
53
41
54
42
Windows
55
43
-------
56
44
57
- We strongly recommend using `SciPy-stack compatible Python distributions
58
- <https://www.scipy.org/install.html> `_ such as WinPython, Python(x,y),
59
- Enthought Canopy, or Continuum Anaconda, which have Matplotlib and its
60
- dependencies, plus other useful packages, preinstalled.
61
-
62
- For `standard Python <https://www.python.org/downloads/ >`_ installations,
63
- install Matplotlib using pip _::
64
-
65
- python -m pip install -U pip setuptools
66
- python -m pip install matplotlib
67
-
68
45
In case Python 2.7 or 3.4 are not installed for all users,
69
46
the Microsoft Visual C++ 2008
70
47
(`64 bit <https://www.microsoft.com/en-us/download/details.aspx?id=15336 >`__
76
53
`32 bit <https://www.microsoft.com/en-us/download/details.aspx?id=5555 >`__
77
54
for Python 3.4) redistributable packages need to be installed.
78
55
56
+ macOS
57
+ -----
58
+
59
+ If you are using Python 2.7 on a Mac you may need to do::
60
+
61
+ xcode-select --install
62
+
63
+ so that *subprocess32 *, a dependency, may be compiled.
64
+
65
+ To use the native OSX backend you will need :ref: `a framework build
66
+ <osxframework-faq>` build of Python.
67
+
79
68
80
- The Windows wheels (:file: `*.whl `) on the `PyPI download page
69
+ Linux
70
+ -----
71
+
72
+ On extremely old versions of Linux and Python 2.7 you may need to
73
+ install the master version of *subprocess32 * (`see comments
74
+ <https://github.com/google/python-subprocess32/issues/12#issuecomment-304724113> `__).
75
+
76
+
77
+ Test Data
78
+ ---------
79
+
80
+ The wheels (:file: `*.whl `) on the `PyPI download page
81
81
<https://pypi.python.org/pypi/matplotlib/> `_ do not contain test data
82
82
or example code.
83
83
If you want to try the many demos that come in the Matplotlib source
@@ -93,17 +93,34 @@ To run the test suite:
93
93
<https://inkscape.org/> `_;
94
94
* run ``py.test path\to\tests\directory ``.
95
95
96
- .. note ::
97
96
98
- The following backends work out of the box: Agg, TkAgg, ps, pdf and svg.
99
- TkAgg is probably the best backend for interactive use from the standard
100
- Python shell or from IPython and is enabled as default.
97
+ Third-party distributions of Matplotlib
98
+ =======================================
99
+
100
+ .. _install_scipy_dists :
101
+
102
+ Scientific Python Distributions
103
+ -------------------------------
101
104
102
- GTK3 is not supported on Windows.
105
+ Both `Anaconda <https://www.continuum.io/downloads/ >`_ and `Canopy
106
+ <https://www.enthought.com/products/canopy/> `_ are both excellent
107
+ choices that "just work" out of the box for Windows, macOS and common
108
+ Linux platforms. `WinPython <https://winpython.github.io/ >`__ is an
109
+ option for windows users. All of these distributions include
110
+ Matplotlib and *lots * of other useful tools.
111
+
112
+
113
+ Linux : using your package manager
114
+ ----------------------------------
115
+
116
+ If you are on Linux, you might prefer to use your package manager. Matplotlib
117
+ is packaged for almost every major Linux distribution.
118
+
119
+ * Debian / Ubuntu: ``sudo apt-get install python3-matplotlib ``
120
+ * Fedora: ``sudo dnf install python3-matplotlib ``
121
+ * Red Hat: ``sudo yum install python3-matplotlib ``
122
+ * Arch: ``sudo pacman -S python-matplotlib ``
103
123
104
- For support for other backends, LaTeX rendering, animation input/output and
105
- a larger selection of file formats, you may need to install :ref: `additional
106
- dependencies <install_requirements>`.
107
124
108
125
109
126
.. _install_from_source :
0 commit comments