English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Matplotlib and its dependencies are provided in the standard Python package repository as wheel packages. You can install Matplotlib on Windows, Linux, and MacOS systems using the pip package manager. Refer to the following commands:
# Filename : example.py # Copyright : 2020 By w3codebox # Author by : www.oldtoolbag.com # Date : 2020-08-08 python -m pip install -U pip python -m pip install -U matplotlib
Python is not installed for all users 2.7or3.4version, you need to install Microsoft Visual C++ 2008(64Bitwise OR32Bit forPython 2.7) or Microsoft Visual C++ 2010(64Bitwise OR32Bit for Python 3.4) redistributable package.
If you use Python on Mac 2.7Please execute the following command -
# Filename : example.py # Copyright : 2020 By w3codebox # Author by : www.oldtoolbag.com # Date : 2020-08-08 xcode-select -install
When executing the above command, you can compile subprocesses32(Dependency). In extremely old versions of Linux and Python 2.7above, subprocess may need to be installed32of the main version.
Matplotlib requires a large number of dependencies -
Python (>= 2.7 or >= 3.4) NumPy setuptools dateutil pyparsing libpng pytz FreeType cycler six
Alternatively, you can also install many software packages to enable better user interface toolkits.
tk PyQt4 PyQt5 pygtk wxpython pycairo Tornado
To better support animation output formats and image file formats such as LaTeX, the following can be installed: -
_mpeg/avconv ImageMagick Pillow (>=2.0) LaTeX and GhostScript (used to render text with LaTeX)