-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC refactored installation instruction #8240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0acf41e
DOC refactored installation instruction
NelleV b55412e
DOC improved our installation documentation
NelleV 3044d12
DOC Completed the list of optional dependencies
NelleV 60a1b64
MAINT renamed INSTALL into INSTALL.rst for rendering
NelleV 36a917c
DOC fix typos and minor detail in installation.rst
NelleV f55ed17
Use more https in install docs.
QuLogic 37af9a6
Use consistent capitalization in install instructions.
QuLogic 8ee8a93
Use dnf for Fedora install instructions.
QuLogic 1159085
Rename OSX to macOS for install instructions.
QuLogic 86be684
Tweak phrasing of install instructions.
QuLogic 9265b4a
DOC: Fix broken cross-reference.
QuLogic bafe158
FIX table of contents on INSTALL.rst
NelleV dd08c3b
DOC fix README refers to INSTALL.rst
NelleV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
DOC Completed the list of optional dependencies
- Loading branch information
commit 3044d12cd47883305ede29ea32cc90217a6efab6
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ Installing an official release | |
Matplotlib and most of its dependencies all available as wheel packages for | ||
OSX, windows and many linux distributions:: | ||
|
||
pip install -U numpy scipy scikit-learn | ||
pip install -U matplotlib | ||
|
||
Third-party distributions of Matplotlib | ||
======================================= | ||
|
@@ -73,28 +73,9 @@ or | |
`32 bit <https://www.microsoft.com/en-us/download/details.aspx?id=5555>`__ | ||
for Python 3.4) redistributable packages need to be installed. | ||
|
||
Matplotlib depends on `Pillow <https://pypi.python.org/pypi/Pillow>`_ | ||
for reading and saving JPEG, BMP, and TIFF image files. | ||
Matplotlib requires `MiKTeX <https://miktex.org/>`_ and | ||
`GhostScript <https://ghostscript.com/download/>`_ for rendering text | ||
with LaTeX. | ||
`FFmpeg <https://www.ffmpeg.org/>`_, `avconv <https://libav.org/>`_, | ||
`mencoder <http://www.mplayerhq.hu>`_, or | ||
`ImageMagick <http://www.imagemagick.org/script/index.php>`_ 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 <https://pypi.python.org/pypi/pycairo>`_, | ||
`PyQt4 <https://pypi.python.org/pypi/PyQt4>`_, | ||
`PyQt5 <https://pypi.python.org/pypi/PyQt5>`_, | ||
`PySide <https://pypi.python.org/pypi/PySide>`_, | ||
`wxPython <https://pypi.python.org/pypi/wxPython>`_, | ||
`PyGTK <https://pypi.python.org/pypi/PyGTK>`_, | ||
`Tornado <https://pypi.python.org/pypi/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. | ||
|
@@ -115,6 +96,17 @@ To run the test suite: | |
<https://inkscape.org/>`_; | ||
* run ``py.test path\\to\\tests\\directory``. | ||
|
||
.. note:: | ||
|
||
The following backends work out of the box: Agg, TkAgg, ps, pdf and svg. | ||
TkAgg is probably the best backend for interactive use from the standard | ||
Python shell or from IPython and is enabled as default. | ||
|
||
GTK3 is not supported on windows. | ||
|
||
For support for other backend, LaTeX rendering, animation input/output and | ||
larger selection of file format, you may need to install `additional | ||
dependencies <_install_requirements>`. | ||
|
||
|
||
.. _install_from_source: | ||
|
@@ -176,24 +168,30 @@ Matplotlib requires a large number of dependencies: | |
* `pyparsing <https://pyparsing.wikispaces.com/>`__ | ||
* `libpng <http://www.libpng.org>`__ ( >= 1.2) | ||
* `pytz <http://pytz.sourceforge.net/>`__ | ||
* FreeType` (>= 2.3) | ||
* FreeType (>= 2.3) | ||
* `cycler <http://matplotlib.org/cycler/>`__ (>= 0.10.0) | ||
* `six <https://pypi.python.org/pypi/six>`_ | ||
* `backports.functools_lru_cache <https://pypi.python.org/pypi/backports.functools_lru_cache>`_ | ||
(for Python 2.7 only) | ||
* `subprocess32 <https://pypi.python.org/pypi/subprocess32/>`_ (for Python | ||
2.7 only) | ||
2.7 only, on Linux and mac os X only) | ||
|
||
Optionally, you can also install a number of packages to enables better user | ||
interface toolkit. See :ref:`what-is-a-backend` for more details on the | ||
optional Matplotlib backends and the capabilities they provide. | ||
|
||
* :term:`tk` (>= 8.3, != 8.6.0 or 8.6.1): for the TkAgg backend; | ||
* :term:`pyqt` (>= 4.4): for the Qt4Agg backend; | ||
* `PyQt4 <https://pypi.python.org/pypi/PyQt4>`_ (>= 4.4): for the Qt4Agg backend; | ||
* `PyQt5 <https://pypi.python.org/pypi/PyQt5>`_: for the Qt5Agg backend; | ||
* :term:`pygtk` (>= 2.4): for the GTK and the GTKAgg backend; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. did we lose |
||
* :term:`wxpython` (>= 2.8 or later): for the WX or WXAgg backend. | ||
|
||
For better support of animation output format and image file format, you can | ||
* :term:`wxpython` (>= 2.8 or later): for the WX or WXAgg backend; | ||
* `pycairo <https://pypi.python.org/pypi/pycairo>`_; | ||
* `PySide <https://pypi.python.org/pypi/PySide>`_; | ||
* `PyGTK <https://pypi.python.org/pypi/PyGTK>`_; | ||
* `Tornado <https://pypi.python.org/pypi/tornado>`_: for the WebAgg backend. | ||
|
||
For better support of animation output format and image file format, LaTeX, | ||
etc you can | ||
install the following: | ||
|
||
* `ffmpeg <https://www.ffmpeg.org/>`__/`avconv | ||
|
@@ -202,7 +200,9 @@ install the following: | |
* `ImageMagick <http://www.imagemagick.org/script/index.php>`__ (for saving | ||
animated gifs); | ||
* `Pillow <http://python-pillow.org/>`__ (for a larger selection of image | ||
file format). | ||
file format: JPEG, BMP, and TIFF image files); | ||
* `Latex <https://miktex.org/>`_ and `GhostScript <https://ghostscript.com/download/>`_ | ||
(for rendering text with LaTeX); | ||
|
||
.. note:: | ||
|
||
|
@@ -212,6 +212,13 @@ install the following: | |
more smoothly if the libraries and headers are not in the expected | ||
locations. | ||
|
||
.. note:: | ||
|
||
The following libraries are shipped with Matplotlib: | ||
|
||
- `Agg`: the antigrain C++ rendering engine; | ||
- `qhull`: to compute Delaunay triangulation; | ||
- `ttconv`: a true type font utility. | ||
|
||
.. _build_linux: | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the '*nix' got dropped here.