Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1f4d68

Browse files
committed
DOC: Update Windows installation instructions
Matplotlib and all its required dependencies can be installed using pip. Binaries for Python 3.5 are built with Visual Studio 2015 and include the required C++ runtime files. Remove references to Python 2.6 and 3.3, as well as Windows installers.
1 parent d54ffdb commit b1f4d68

File tree

1 file changed

+32
-43
lines changed

1 file changed

+32
-43
lines changed

INSTALL

Lines changed: 32 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ Most platforms : scientific Python distributions
2121
The first option is to use one of the pre-packaged python
2222
distributions that already provide matplotlib built-in. The
2323
Continuum.io Python distribution (`Anaconda
24-
<https://store.continuum.io/cshop/anaconda/>`_ or `miniconda
24+
<https://www.continuum.io/downloads/>`_ or `miniconda
2525
<http://conda.pydata.org/miniconda.html>`_) and the Enthought
2626
distribution `(Canopy) <https://www.enthought.com/products/canopy/>`_
2727
are both excellent choices that "just work" out of the box for
2828
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.
3230

3331

3432
Linux : using your package manager
@@ -47,40 +45,33 @@ If you are on Mac OSX you can probably install matplotlib binaries using the
4745
standard Python installation program `pip <https://pypi.python.org/pypi/pip>`_.
4846
See :ref:`install_osx_binaries`.
4947

48+
.. _installing_windows:
5049

5150
Windows
5251
-------
5352

5453
If you don't already have Python installed, we recommend using
5554
one of the `scipy-stack compatible Python distributions
5655
<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),
7566
the Microsoft Visual C++ 2008 (
7667
`64 bit <http://www.microsoft.com/download/en/details.aspx?id=15336>`__
7768
or
7869
`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 (
8071
`64 bit <http://www.microsoft.com/en-us/download/details.aspx?id=14632>`__
8172
or
8273
`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.
8475

8576
Matplotlib depends on `Pillow <https://pypi.python.org/pypi/Pillow>`_
8677
for reading and saving JPEG, BMP, and TIFF image files.
@@ -105,18 +96,19 @@ For other backends you may need to install
10596
or GhostScript.
10697

10798
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
109100
for the official binaries. GTK3 is not supported on Windows.
110101

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
120112
install `nose <https://pypi.python.org/pypi/nose>`_, `mock
121113
<https://pypi.python.org/pypi/mock>`_, Pillow, MiKTeX, GhostScript,
122114
ffmpeg, avconv, mencoder, ImageMagick, and `Inkscape
@@ -320,17 +312,14 @@ git repository and follow the instruction in :file:`README.osx`.
320312

321313
.. _build_windows:
322314

323-
324315
Building on Windows
325316
-------------------
326317

327318
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
336325
at `matplotlib-winbuild <https://github.com/jbmohler/matplotlib-winbuild>`_.

0 commit comments

Comments
 (0)