1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
.. set of quick install commands for reuse across docs
.. tab-set::
:class: sd-width-content-min
.. tab-item:: pip
.. code-block:: bash
pip install matplotlib
.. tab-item:: conda
.. code-block:: bash
conda install -c conda-forge matplotlib
.. tab-item:: pixi
.. code-block:: bash
pixi add matplotlib
.. tab-item:: uv
.. code-block:: bash
uv add matplotlib
.. warning::
uv usually installs its own versions of Python from the
python-build-standalone project, and only recent versions of those
Python builds (August 2025) work properly with the ``tkagg`` backend
for displaying plots in a window. Please make sure you are using uv
0.8.7 or newer (update with e.g. ``uv self update``) and that your
bundled Python installs are up to date (with ``uv python upgrade
--reinstall``). Alternatively, you can use one of the other
:ref:`supported GUI frameworks <optional_dependencies>`, e.g.
.. code-block:: bash
uv add matplotlib pyside6
.. tab-item:: other
:ref:`install-official`
:ref:`install-third-party`
:ref:`install-nightly-build`
:ref:`install-source`
|