@@ -14,17 +14,17 @@ Installing
14
14
:ref: `install the latest development version<install_from_source> `.
15
15
16
16
17
-
18
- .. contents..
17
+ .. contents..
19
18
20
19
Installing an official release
21
20
==============================
22
21
23
- Matplotlib and most of its dependencies arr all available as wheel packages for
22
+ Matplotlib and most of its dependencies are all available as wheel packages for
24
23
macOS, Windows and Linux distributions::
25
24
26
25
pip install -U matplotlib
27
26
27
+
28
28
Third-party distributions of Matplotlib
29
29
=======================================
30
30
@@ -101,9 +101,9 @@ To run the test suite:
101
101
102
102
GTK3 is not supported on Windows.
103
103
104
- For support for other backend , LaTeX rendering, animation input/output and
105
- larger selection of file format , you may need to install `additional
106
- dependencies <_install_requirements> `.
104
+ For support for other backends , LaTeX rendering, animation input/output and
105
+ a larger selection of file formats , you may need to install `additional
106
+ dependencies <_install_requirements> `_ .
107
107
108
108
109
109
.. _install_from_source :
@@ -147,7 +147,7 @@ packaging Matplotlib.
147
147
If you have installed prerequisites to nonstandard places and need to
148
148
inform Matplotlib where they are, edit ``setupext.py `` and add the base
149
149
dirs to the ``basedir `` dictionary entry for your ``sys.platform ``;
150
- e.g., if the header to some required library is in
150
+ e.g., if the header of some required library is in
151
151
``/some/path/include/someheader.h ``, put ``/some/path `` in the
152
152
``basedir `` list for your platform.
153
153
@@ -161,7 +161,7 @@ Matplotlib requires a large number of dependencies:
161
161
* `Python <https://www.python.org/downloads/ >`_ (>= 2.7 or >= 3.4)
162
162
* `NumPy <http://www.numpy.org >`_ (>= |minimum_numpy_version |)
163
163
* `setuptools <https://setuptools.readthedocs.io/en/latest/ >`__
164
- * ` dateutil ` (>= 1.1)
164
+ * dateutil (>= 1.1)
165
165
* `pyparsing <https://pyparsing.wikispaces.com/ >`__
166
166
* `libpng <http://www.libpng.org >`__ (>= 1.2)
167
167
* `pytz <http://pytz.sourceforge.net/ >`__
@@ -173,39 +173,38 @@ Matplotlib requires a large number of dependencies:
173
173
* `subprocess32 <https://pypi.python.org/pypi/subprocess32/ >`_ (for Python
174
174
2.7 only, on Linux and macOS only)
175
175
176
- Optionally, you can also install a number of packages to enables better user
177
- interface toolkit . See :ref: `what-is-a-backend ` for more details on the
176
+ Optionally, you can also install a number of packages to enable better user
177
+ interface toolkits . See :ref: `what-is-a-backend ` for more details on the
178
178
optional Matplotlib backends and the capabilities they provide.
179
179
180
180
* :term: `tk ` (>= 8.3, != 8.6.0 or 8.6.1): for the TkAgg backend;
181
- * `PyQt4 <https://pypi.python.org/pypi/PyQt4 >`_ (>= 4.4): for the Qt4Agg backend;
181
+ * `PyQt4 <https://pypi.python.org/pypi/PyQt4 >`_ (>= 4.4) or
182
+ `PySide <https://pypi.python.org/pypi/PySide >`_: for the Qt4Agg backend;
182
183
* `PyQt5 <https://pypi.python.org/pypi/PyQt5 >`_: for the Qt5Agg backend;
183
184
* :term: `pygtk ` (>= 2.4): for the GTK and the GTKAgg backend;
184
185
* :term: `wxpython ` (>= 2.8 or later): for the WX or WXAgg backend;
185
186
* `pycairo <https://pypi.python.org/pypi/pycairo >`_: for GTK3Cairo;
186
- * `PySide <https://pypi.python.org/pypi/PySide >`_: for the Qt4Agg backend;
187
187
* `Tornado <https://pypi.python.org/pypi/tornado >`_: for the WebAgg backend.
188
188
189
189
For better support of animation output format and image file formats, LaTeX,
190
- etc you can
191
- install the following:
190
+ etc., you can install the following:
192
191
193
192
* `ffmpeg <https://www.ffmpeg.org/ >`__/`avconv
194
193
<https://libav.org/avconv.html> `__ or `mencoder
195
194
<https://mplayerhq.hu/design7/news.html> `__ (for saving movies);
196
195
* `ImageMagick <https://www.imagemagick.org/script/index.php >`__ (for saving
197
196
animated gifs);
198
197
* `Pillow <https://python-pillow.org/ >`__ (for a larger selection of image
199
- file format : JPEG, BMP, and TIFF image files);
198
+ file formats : JPEG, BMP, and TIFF image files);
200
199
* `LaTeX <https://miktex.org/ >`_ and `GhostScript <https://ghostscript.com/download/ >`_
201
200
(for rendering text with LaTeX);
202
201
203
202
.. note ::
204
203
205
204
Matplotlib depends on a large number of non-Python libraries.
206
205
`pkg-config <https://www.freedesktop.org/wiki/Software/pkg-config/ >`__
207
- can be used to find required non-Python libraries and thus make install go
208
- more smoothly if the libraries and headers are not in the expected
206
+ can be used to find required non-Python libraries and thus make the install
207
+ go more smoothly if the libraries and headers are not in the expected
209
208
locations.
210
209
211
210
.. note ::
@@ -238,7 +237,7 @@ Matplotlib by first installing ``yum-builddep`` and then running::
238
237
239
238
su -c "yum-builddep python-matplotlib"
240
239
241
- This does not build Matplotlib, but it does get and install the
240
+ These commands do not build Matplotlib, but instead get and install the
242
241
build dependencies, which will make building from source easier.
243
242
244
243
@@ -249,28 +248,28 @@ Building on macOS
249
248
250
249
The build situation on macOS is complicated by the various places one
251
250
can get the libpng and FreeType requirements (MacPorts, Fink,
252
- /usr/X11R6) and the different architectures (e.g., x86, ppc, universal),
253
- the different macOS version (e.g., 10.4 and 10.5). We recommend that you build
251
+ /usr/X11R6), the different architectures (e.g., x86, ppc, universal), and
252
+ the different macOS versions (e.g., 10.4 and 10.5). We recommend that you build
254
253
the way we do for the macOS release: get the source from the tarball or the
255
254
git repository and install the required dependencies through a third-party
256
255
package manager. Two widely used package managers are Homebrew, and MacPorts.
257
256
The following example illustrates how to install libpng and FreeType using
258
- brew::
257
+ `` brew `` ::
259
258
260
259
brew install libpng freetype pkg-config
261
260
262
261
If you are using MacPorts, execute the following instead::
263
262
264
263
port install libpng freetype pkgconfig
265
264
266
- To install Matplotlib from source, execute::
265
+ After installing the above requirements, install Matplotlib from source by
266
+ executing::
267
267
268
268
python setup.py install
269
269
270
-
271
- Note that your environment is somewhat important. Some conda users have
272
- found that, to run the tests, their PYTHONPATH must include
273
- /path/to/anaconda/.../site-packages and their DYLD_FALLBACK_LIBRARY_PATH
270
+ Note that your environment is somewhat important. Some conda users have
271
+ found that, to run the tests, their PYTHONPATH must include
272
+ /path/to/anaconda/.../site-packages and their DYLD_FALLBACK_LIBRARY_PATH
274
273
must include /path/to/anaconda/lib.
275
274
276
275
@@ -304,7 +303,7 @@ install.
304
303
305
304
The commands below assume that you can compile a native Python lib for the Python version of your
306
305
choice. See `this howto <https://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/ >`_
307
- how to install and setup such environments. If in doubt: use Python >= 3.5 as it mostly works
306
+ for how to install and setup such environments. If in doubt: use Python >= 3.5 as it mostly works
308
307
without fiddling with environment variables::
309
308
310
309
# create a new environment with the required packages
@@ -332,7 +331,7 @@ without fiddling with environment variables::
332
331
python setup.py bdist_wheel
333
332
334
333
The `build_alllocal.cmd ` script in the root folder automates these steps if
335
- you already created and activated the conda environment.
334
+ you have already created and activated the conda environment.
336
335
337
336
338
337
Conda packages
0 commit comments