|
1 | | -############ |
2 | | -Installation |
3 | | -############ |
4 | | - |
5 | | -============================== |
6 | | -Installing an official release |
7 | | -============================== |
8 | | - |
9 | | -Matplotlib releases are available as wheel packages for macOS, Windows and |
10 | | -Linux on `PyPI <https://pypi.org/project/matplotlib/>`_. Install it using |
11 | | -``pip``: |
12 | | - |
13 | | -.. code-block:: sh |
14 | | -
|
15 | | - python -m pip install -U pip |
16 | | - python -m pip install -U matplotlib |
17 | | -
|
18 | | -If this command results in Matplotlib being compiled from source and |
19 | | -there's trouble with the compilation, you can add ``--prefer-binary`` to |
20 | | -select the newest version of Matplotlib for which there is a |
21 | | -precompiled wheel for your OS and Python. |
22 | | - |
23 | | -.. note:: |
24 | | - |
25 | | - The following backends work out of the box: Agg, ps, pdf, svg |
26 | | - |
27 | | - Python is typically shipped with tk bindings which are used by |
28 | | - TkAgg. |
29 | | - |
30 | | - For support of other GUI frameworks, LaTeX rendering, saving |
31 | | - animations and a larger selection of file formats, you can |
32 | | - install :ref:`optional_dependencies`. |
33 | | - |
34 | | -========================= |
35 | | -Third-party distributions |
36 | | -========================= |
37 | | - |
38 | | -Various third-parties provide Matplotlib for their environments. |
39 | | - |
40 | | -Conda packages |
41 | | -============== |
42 | | -Matplotlib is available both via the *anaconda main channel* |
43 | | - |
44 | | -.. code-block:: sh |
45 | | -
|
46 | | - conda install matplotlib |
47 | | -
|
48 | | -as well as via the *conda-forge community channel* |
49 | | - |
50 | | -.. code-block:: sh |
51 | | -
|
52 | | - conda install -c conda-forge matplotlib |
53 | | -
|
54 | | -Python distributions |
55 | | -==================== |
56 | | - |
57 | | -Matplotlib is part of major Python distributions: |
58 | | - |
59 | | -- `Anaconda <https://www.anaconda.com/>`_ |
60 | | - |
61 | | -- `ActiveState ActivePython |
62 | | - <https://www.activestate.com/products/python/downloads/>`_ |
63 | | - |
64 | | -- `WinPython <https://winpython.github.io/>`_ |
65 | | - |
66 | | -Linux package manager |
67 | | -===================== |
68 | | - |
69 | | -If you are using the Python version that comes with your Linux distribution, |
70 | | -you can install Matplotlib via your package manager, e.g.: |
71 | | - |
72 | | -* Debian / Ubuntu: ``sudo apt-get install python3-matplotlib`` |
73 | | -* Fedora: ``sudo dnf install python3-matplotlib`` |
74 | | -* Red Hat: ``sudo yum install python3-matplotlib`` |
75 | | -* Arch: ``sudo pacman -S python-matplotlib`` |
76 | | - |
77 | | -====================== |
78 | | -Installing from source |
79 | | -====================== |
80 | | -See :ref:`install_from_source`. |
81 | | - |
82 | | -========================== |
83 | | -Installing for development |
84 | | -========================== |
85 | | -See :ref:`installing_for_devs`. |
86 | | - |
87 | | -============== |
88 | | -Installing FAQ |
89 | | -============== |
90 | | - |
91 | | -See :ref:`installing-faq`. |
| 1 | +See doc/users/installing/index.rst |
0 commit comments