1
1
.. The source of this document is INSTALL. During the doc build process,
2
2
.. this file is copied over to doc/users/installing.rst.
3
3
.. Therefore, you must edit INSTALL, *not* doc/users/installing.rst!
4
+ .. _pip: https://pypi.python.org/pypi/pip/
4
5
5
6
**********
6
7
Installing
@@ -21,14 +22,12 @@ Most platforms : scientific Python distributions
21
22
The first option is to use one of the pre-packaged python
22
23
distributions that already provide matplotlib built-in. The
23
24
Continuum.io Python distribution (`Anaconda
24
- <https://store .continuum.io/cshop/anaconda />`_ or `miniconda
25
+ <https://www .continuum.io/downloads />`_ or `miniconda
25
26
<http://conda.pydata.org/miniconda.html>`_) and the Enthought
26
27
distribution `(Canopy) <https://www.enthought.com/products/canopy/>`_
27
28
are both excellent choices that "just work" out of the box for
28
29
Windows, OSX and common Linux platforms. Both of these distributions
29
- include matplotlib and *lots* of other useful tools. Another
30
- excellent alternative for Windows users is `Python (x, y)
31
- <https://code.google.com/p/pythonxy>`_ .
30
+ include matplotlib and *lots* of other useful tools.
32
31
33
32
34
33
Linux : using your package manager
@@ -44,43 +43,36 @@ Mac OSX : using pip
44
43
-------------------
45
44
46
45
If you are on Mac OSX you can probably install matplotlib binaries using the
47
- standard Python installation program `pip <https://pypi.python.org/pypi/pip>`_ .
46
+ standard Python installation program pip_ .
48
47
See :ref:`install_osx_binaries`.
49
48
49
+ .. _installing_windows:
50
50
51
51
Windows
52
52
-------
53
53
54
54
If you don't already have Python installed, we recommend using
55
55
one of the `scipy-stack compatible Python distributions
56
56
<http://www.scipy.org/install.html>`_ such as WinPython, Python(x,y),
57
- Enthought Canopy, or Continuum Anaconda, which have matplotlib and
58
- many of its dependencies, plus other useful packages, preinstalled.
59
-
60
- For `standard Python <http://www.python.org/download/>`_ installations
61
- you will also need to install compatible versions of
62
- `setuptools <https://pypi.python.org/pypi/setuptools/>`_,
63
- `numpy <https://pypi.python.org/pypi/numpy/>`_,
64
- `python-dateutil <https://pypi.python.org/pypi/python-dateutil/>`_,
65
- `pytz <https://pypi.python.org/pypi/pytz>`_,
66
- `pyparsing <https://pypi.python.org/pypi/pyparsing/>`_, and
67
- `cycler <https://pypi.python.org/pypi/Cycler>`_
68
- in addition to
69
- `matplotlib <http://pypi.python.org/pypi/matplotlib/>`_.
70
-
71
- For Python 3.5 the `Visual C++ Redistributable for Visual Studio 2015
72
- <http://www.microsoft.com/en-us/download/details.aspx?id=48145>`_
73
- needs to be installed.
74
- In case Python 2.7 to 3.4 are not installed for all users (not the default),
57
+ Enthought Canopy, or Continuum Anaconda, which have matplotlib and many
58
+ of its dependencies, plus other useful packages, preinstalled.
59
+
60
+ For `standard Python <https://www.python.org/download/>`_ installations,
61
+ install matplotlib using pip_::
62
+
63
+ python -m pip install -U pip setuptools
64
+ python -m pip install matplotlib
65
+
66
+ In case Python 2.7 or 3.4 are not installed for all users,
75
67
the Microsoft Visual C++ 2008 (
76
68
`64 bit <http://www.microsoft.com/download/en/details.aspx?id=15336>`__
77
69
or
78
70
`32 bit <http://www.microsoft.com/download/en/details.aspx?id=29>`__
79
- for Python 2.7 to 3.2 ) or Microsoft Visual C++ 2010 (
71
+ for Python 2.7) or Microsoft Visual C++ 2010 (
80
72
`64 bit <http://www.microsoft.com/en-us/download/details.aspx?id=14632>`__
81
73
or
82
74
`32 bit <http://www.microsoft.com/en-us/download/details.aspx?id=5555>`__
83
- for Python 3.3 and 3. 4) redistributable packages need to be installed.
75
+ for Python 3.4) redistributable packages need to be installed.
84
76
85
77
Matplotlib depends on `Pillow <https://pypi.python.org/pypi/Pillow>`_
86
78
for reading and saving JPEG, BMP, and TIFF image files.
@@ -105,22 +97,23 @@ For other backends you may need to install
105
97
or GhostScript.
106
98
107
99
TkAgg is probably the best backend for interactive use from the
108
- standard Python shell or IPython. It is enabled as the default backend
100
+ standard Python shell or IPython. It is enabled as the default backend
109
101
for the official binaries. GTK3 is not supported on Windows.
110
102
111
- The Windows installers (:file:`*.exe`) and wheels (:file:`*.whl`) on
112
- the `PyPI download page <http://pypi.python.org/pypi/matplotlib/>`_ do
113
- not contain test data or example code. If you want to try the many
114
- demos that come in the matplotlib source distribution, download the
115
- :file:`*.tar.gz` file and look in the :file:`examples` subdirectory.
116
- To run the test suite, copy the :file:`lib\matplotlib\tests` and
117
- :file:`lib\mpl_toolkits\tests` directories from the source
118
- distribution to :file:`sys.prefix\Lib\site-packages\matplotlib` and
119
- :file:`sys.prefix\Lib\site-packages\mpl_toolkits` respectively, and
103
+ The Windows wheels (:file:`*.whl`) on the `PyPI download page
104
+ <https://pypi.python.org/pypi/matplotlib/>`_ do not contain test data
105
+ or example code.
106
+ If you want to try the many demos that come in the matplotlib source
107
+ distribution, download the :file:`*.tar.gz` file and look in the
108
+ :file:`examples` subdirectory.
109
+ To run the test suite, copy the :file:`lib\\matplotlib\\tests` and
110
+ :file:`lib\\mpl_toolkits\\tests` directories from the source
111
+ distribution to :file:`sys.prefix\\Lib\\site-packages\\matplotlib` and
112
+ :file:`sys.prefix\\Lib\\site-packages\\mpl_toolkits` respectively, and
120
113
install `nose <https://pypi.python.org/pypi/nose>`_, `mock
121
114
<https://pypi.python.org/pypi/mock>`_, Pillow, MiKTeX, GhostScript,
122
115
ffmpeg, avconv, mencoder, ImageMagick, and `Inkscape
123
- <http ://inkscape.org/>`_.
116
+ <https ://inkscape.org/>`_.
124
117
125
118
126
119
@@ -327,17 +320,14 @@ git repository and follow the instruction in :file:`README.osx`.
327
320
328
321
.. _build_windows:
329
322
330
-
331
323
Building on Windows
332
324
-------------------
333
325
334
326
The Python shipped from http://www.python.org is compiled with Visual Studio
335
- 2008 for versions before 3.3 and Visual Studio 2010 for 3.3 and later. Python
336
- extensions are recommended to be compiled with the same compiler. The .NET
337
- Framework 4.0 is required for MSBuild (you'll likely have the requisite
338
- Framework with Visual Studio). In addition to Visual Studio `CMake
339
- <http://www.cmake.org>`_ is required for building libpng.
340
-
341
- Since there is no canonical Windows package manager the build methods for
342
- freetype, zlib, libpng, tcl, & tk source code are documented as a build script
327
+ 2008 for versions before 3.3, Visual Studio 2010 for 3.3 and 3.4, and
328
+ Visual Studio 2015 for 3.5. Python extensions are recommended to be compiled
329
+ with the same compiler.
330
+
331
+ Since there is no canonical Windows package manager, the methods for building
332
+ freetype, zlib, and libpng from source code are documented as a build script
343
333
at `matplotlib-winbuild <https://github.com/jbmohler/matplotlib-winbuild>`_.
0 commit comments