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