Windows
If you don’t already have Python installed, we recommend using one of the scipy-stack compatible Python distributions such as Python(x,y), Enthought Canopy, or Continuum Anaconda, which have matplotlib and many of its dependencies, plus other useful packages, preinstalled.
For standard Python installations you will also need to install compatible versions of setuptools, numpy, python-dateutil, pytz, pyparsing and six in addition to matplotlib.
In case Python is not installed for all users (not the default), the Microsoft Visual C++ 2008 ( 64 bit or 32 bit for Python 2.6 to 3.2) or Microsoft Visual C++ 2010 ( 64 bit or 32 bit for Python 3.3 and 3.4) redistributable packages need to be installed.
Matplotlib depends on Pillow for reading and saving JPEG, BMP, and TIFF image files. Matplotlib requires MiKTeX and GhostScript for rendering text with LaTeX. FFmpeg, avconv, mencoder, or ImageMagick are required for the animation module.
The following backends should work out of the box: agg, tkagg, ps, pdf and svg. For other backends you may need to install pycairo, PyQt4,PyQt5, PySide, wxPython, PyGTK, Tornado, or GhostScript.
TkAgg is probably the best backend for interactive use from the standard Python shell or IPython. It is enabled as the default backend for the official binaries. GTK3 is not supported on Windows.
The Windows installers (
*.exe
) and wheels (*.whl
) on the download page do not contain test data or example code. If you want to try the many demos that come in the matplotlib source distribution, download the *.tar.gz
file and look in the examples
subdirectory. To run the test suite, copy the libmatplotlibtests
and libmpl_toolkitstests
directories from the source distribution to sys.prefixLibsite-packagesmatplotlib
and sys.prefixLibsite-packagesmpl_toolkits
respectively, and install nose, mock, Pillow, MiKTeX, GhostScript, ffmpeg, avconv, mencoder, ImageMagick, and Inkscape.Windows (simplified)
For Windows without PowerShell 3 or for installation without a command-line, download ez_setup.py using your preferred web browser or other technique and "run" that file.
http://matplotlib.org/users/installing.html
No hay comentarios:
Publicar un comentario