11.. The source of this document is INSTALL. During the doc build process,
22.. this file is copied over to doc/users/installing.rst.
33.. Therefore, you must edit INSTALL, *not* doc/users/installing.rst!
4+ .. _pip: https://pypi.python.org/pypi/pip/
45
56**********
67Installing
@@ -21,14 +22,12 @@ Most platforms : scientific Python distributions
2122The first option is to use one of the pre-packaged python
2223distributions that already provide matplotlib built-in. The
2324Continuum.io Python distribution (`Anaconda
24- <https://store .continuum.io/cshop/anaconda />`_ or `miniconda
25+ <https://www .continuum.io/downloads />`_ or `miniconda
2526<http://conda.pydata.org/miniconda.html>`_) and the Enthought
2627distribution `(Canopy) <https://www.enthought.com/products/canopy/>`_
2728are both excellent choices that "just work" out of the box for
2829Windows, 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.
3231
3332
3433Linux : using your package manager
@@ -44,43 +43,36 @@ Mac OSX : using pip
4443-------------------
4544
4645If 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_ .
4847See :ref:`install_osx_binaries`.
4948
49+ .. _installing_windows:
5050
5151Windows
5252-------
5353
5454If you don't already have Python installed, we recommend using
5555one of the `scipy-stack compatible Python distributions
5656<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,
7567the Microsoft Visual C++ 2008 (
7668`64 bit <http://www.microsoft.com/download/en/details.aspx?id=15336>`__
7769or
7870`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 (
8072`64 bit <http://www.microsoft.com/en-us/download/details.aspx?id=14632>`__
8173or
8274`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.
8476
8577Matplotlib depends on `Pillow <https://pypi.python.org/pypi/Pillow>`_
8678for reading and saving JPEG, BMP, and TIFF image files.
@@ -105,22 +97,23 @@ For other backends you may need to install
10597or GhostScript.
10698
10799TkAgg 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
109101for the official binaries. GTK3 is not supported on Windows.
110102
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
120113install `nose <https://pypi.python.org/pypi/nose>`_, `mock
121114<https://pypi.python.org/pypi/mock>`_, Pillow, MiKTeX, GhostScript,
122115ffmpeg, avconv, mencoder, ImageMagick, and `Inkscape
123- <http ://inkscape.org/>`_.
116+ <https ://inkscape.org/>`_.
124117
125118
126119
@@ -328,17 +321,14 @@ git repository and follow the instruction in :file:`README.osx`.
328321
329322.. _build_windows:
330323
331-
332324Building on Windows
333325-------------------
334326
335327The Python shipped from http://www.python.org is compiled with Visual Studio
336- 2008 for versions before 3.3 and Visual Studio 2010 for 3.3 and later. Python
337- extensions are recommended to be compiled with the same compiler. The .NET
338- Framework 4.0 is required for MSBuild (you'll likely have the requisite
339- Framework with Visual Studio). In addition to Visual Studio `CMake
340- <http://www.cmake.org>`_ is required for building libpng.
341-
342- Since there is no canonical Windows package manager the build methods for
343- freetype, zlib, libpng, tcl, & tk source code are documented as a build script
328+ 2008 for versions before 3.3, Visual Studio 2010 for 3.3 and 3.4, and
329+ Visual Studio 2015 for 3.5. Python extensions are recommended to be compiled
330+ with the same compiler.
331+
332+ Since there is no canonical Windows package manager, the methods for building
333+ freetype, zlib, and libpng from source code are documented as a build script
344334at `matplotlib-winbuild <https://github.com/jbmohler/matplotlib-winbuild>`_.
0 commit comments