Download Matplotlib Mac



  1. Download Matplotlib Documentation
  2. Pylab Download Mac
  • Install matplotlib by entering its name into the search field and then selecting the Run command: pip install matplotlib option. This will install matplotlib, as well as any packages it depends on (in this case that includes numpy). Consent to elevation if prompted to do so. After the package is installed, it appears in the Python Environments.
  • The matplotlibrc file was not present on my system and I had to to download a copy from the matplotlib website. Future users may have to do the same. Share improve this answer follow answered Feb 2 '11 at 17:47. Mac comes with its own python (read from here.

转 Install Python, NumPy, SciPy, and matplotlib on Mac OS X. On Snow Leopard you won’t install Xcode via the App Store, you’ll have to download it from Apple.

Release Date: Oct. 15, 2019

Python 3.7.5 was the fifth bugfix release of Python 3.7.

There are now newer bugfix releases of Python 3.7 that supersede 3.7.5 and Python 3.8 is now the latest feature release of Python 3. Get the latest releases of 3.7.x and 3.8.x here. We plan to continue to provide bugfix releasesfor 3.7.x until mid 2020 and security fixes until mid 2023.

Among the major new features in Python 3.7 are:

  • PEP 539, new C API for thread-local storage
  • PEP 545, Python documentation translations
  • New documentation translations: Japanese,French, andKorean.
  • PEP 552, Deterministic pyc files
  • PEP 553, Built-in breakpoint()
  • PEP 557, Data Classes
  • PEP 560, Core support for typing module and generic types
  • PEP 562, Customization of access to module attributes
  • PEP 563, Postponed evaluation of annotations
  • PEP 564, Time functions with nanosecond resolution
  • PEP 565, Improved DeprecationWarning handling
  • PEP 567, Context Variables
  • Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercionand PEP 540, forced UTF-8 runtime mode)
  • The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
  • Notable performance improvements in many areas.

Please see What’s New In Python 3.7 for more information.

Documentation
  • PEP 537, 3.7 Release Schedule
  • Report bugs at https://bugs.python.org.
  • Help fund Python and its community.
  • The binaries for AMD64 will also work on processors that implement the Intel 64 architecture. (Also known as the 'x64' architecture, and formerly known as both 'EM64T' and 'x86-64'.)
  • There are now 'web-based' installers for Windows platforms; the installer will download the needed software components at installation time.
  • There are redistributable zip files containing the Windows builds, making it easy to redistribute Python as part of another software package. Please see the documentation regarding Embedded Distribution for more information.
  • New in 3.7.5 The 3.7.5 10.9+ installer package is now compatible with the Gatekeeper notarization requirements of macOS 10.15 Catalina.
  • We provide two binary installer options for download. The default variant is 64-bit-only and works on macOS 10.9 (Mavericks) and later systems. Changed in 3.7.4 The 64-bit/32-bit variant that also works on very old versions of macOS, from 10.6 (Snow Leopard) on, is now deprecated and will no longer be provided in future releases; see the macOS installer ReadMe file for more info. Both variants come with batteries-included versions of Tcl/Tk 8.6 for users of IDLE and other tkinter-based GUI applications; third-party and system versions of Tcl/Tk are no longer used.
  • Both python.org installer variants include private copies of OpenSSL. Please carefully read the Important Information displayed during installation for information about SSL/TLS certificate validation and the Install Certificates.command. Changed in 3.7.4 OpenSSL has been updated from 1.1.0 to 1.1.1.
VersionOperating SystemDescriptionMD5 SumFile SizeGPG
Gzipped source tarballSource release1cd071f78ff6d9c7524c95303a3057aa23126230SIG
XZ compressed source tarballSource release08ed8030b1183107c48f2092e79a87e217236432SIG
macOS 64-bit/32-bit installerMac OS X{Deprecated) for Mac OS X 10.6 and latercd503606638c8e6948a591a9229446e435020778SIG
macOS 64-bit installerMac OS Xfor macOS 10.9 and later20d9540e88c6aaba1d2bc1ad5d06935928198752SIG
Windows help fileWindows608cafa250f8baa11a69bbfcb842c0e08141193SIG
Windows x86-64 embeddable zip fileWindowsfor AMD64/EM64T/x64436b0f803d2a0b393590030b1cd598537500597SIG
Windows x86-64 executable installerWindowsfor AMD64/EM64T/x64697f7a884e80ccaa9dff3a77e979b0f826777448SIG
Windows x86-64 web-based installerWindowsfor AMD64/EM64T/x64b8b6e5ce8c27c20bfd28f1366ddf8a2f1363032SIG
Windows x86 embeddable zip fileWindows726877d1a1f5a7dc68f6a4fa48964cd16745126SIG
Windows x86 executable installerWindowscfe9a828af6111d5951b74093d70ee8925766192SIG
Windows x86 web-based installerWindowsea946f4b76ce63d366d6ed0e32c113701324872SIG
Mac

There are many different ways to install matplotlib, and the best waydepends on what operating system you are using, what you already haveinstalled, and how you want to use it. To avoid wading through allthe details (and potential complications) on this page, there are severalconvenient options.

Installing pre-built packages¶

Most platforms : scientific Python distributions¶

The first option is to use one of the pre-packaged pythondistributions that already provide matplotlib built-in. TheContinuum.io Python distribution (Anaconda or miniconda) and the Enthoughtdistribution (Canopy)are both excellent choices that “just work” out of the box forWindows, OSX and common Linux platforms. Both of these distributionsinclude matplotlib and lots of other useful tools. Anotherexcellent alternative for Windows users is Python (x, y) .

Linux : using your package manager¶

If you are on Linux, you might prefer to use your package manager. matplotlibis packaged for almost every major Linux distribution.

  • Debian / Ubuntu : sudoapt-getinstallpython-matplotlib
  • Fedora / Redhat : sudoyuminstallpython-matplotlib

Mac OSX : using pip¶

If you are on Mac OSX you can probably install matplotlib binaries using thestandard Python installation program pip.See Installing OSX binary wheels.

Windows¶

If you don’t already have Python installed, we recommend usingone of the scipy-stack compatible Python distributions such as Python(x,y),Enthought Canopy, or Continuum Anaconda, which have matplotlib andmany of its dependencies, plus other useful packages, preinstalled.

For standard Python installationsyou will also need to install compatible versions ofsetuptools,numpy,python-dateutil,pytz,pyparsing andsixin addition tomatplotlib.

In case Python is not installed for all users (not the default), theMicrosoft Visual C++ 2008 (64 bitor32 bitfor Python 2.6 to 3.2) or Microsoft Visual C++ 2010 (64 bitor32 bitfor Python 3.3 and 3.4) redistributable packages need to be installed.

Download Matplotlib Mac

Matplotlib depends on Pillowfor reading and saving JPEG, BMP, and TIFF image files.Matplotlib requires MiKTeX andGhostScript for rendering textwith LaTeX.FFmpeg, avconv,mencoder, orImageMagick are required for theanimation module.

The following backends should work out of the box: agg, tkagg, ps,pdf and svg.For other backends you may need to installpycairo,PyQt4,PyQt5,PySide,wxPython,PyGTK,Tornado,or GhostScript.

TkAgg is probably the best backend for interactive use from thestandard Python shell or IPython. It is enabled as the default backendfor the official binaries. GTK3 is not supported on Windows.

Download

The Windows installers (*.exe) and wheels (*.whl) onthe download page do notcontain test data or example code.If you want to try the many demos that come in the matplotlib sourcedistribution, download the *.tar.gz file and look in theexamples subdirectory.To run the test suite, copy the libmatplotlibtests andlibmpl_toolkitstests directories from the source distribution tosys.prefixLibsite-packagesmatplotlib andsys.prefixLibsite-packagesmpl_toolkits respectively, and installnose,mock,Pillow, MiKTeX, GhostScript, ffmpeg, avconv, mencoder, ImageMagick, andInkscape.

Installing from source¶

If you are interested in contributing to matplotlib development,running the latest source code, or just like to build everythingyourself, it is not difficult to build matplotlib from source. Grabthe latest tar.gz release file from the download page, or if you wantto develop matplotlib or just need the latest bugfixed version, grabthe latest git version Source install from git.

Once you have satisfied the requirements detailed below (mainlypython, numpy, libpng and freetype), you can build matplotlib:

We provide a setup.cfgfile that goes with setup.py which you can use to customizethe build process. For example, which default backend to use, whethersome of the optional libraries that matplotlib ships with areinstalled, and so on. This file will be particularly useful to thosepackaging matplotlib.

If you have installed prerequisites to nonstandard places and need toinform matplotlib where they are, edit setupext.py and add the basedirs to the basedir dictionary entry for your sys.platform.e.g., if the header to some required library is in/some/path/include/someheader.h, put /some/path in thebasedir list for your platform.

Build requirements¶

These are external packages which you will need to install beforeinstalling matplotlib. If you are building on OSX, seeBuilding on OSX. If you are building on Windows, seeBuilding on Windows. If you are installing dependencies with apackage manager on Linux, you may need to install the developmentpackages (look for a “-dev” postfix) in addition to the librariesthemselves.

Required Dependencies¶

python 2.6, 2.7, 3.3 or 3.4
Download python.
numpy 1.6 (or later)
array support for python (download numpy)
dateutil 1.1 or later
Provides extensions to python datetime handling. If using pip,easy_install or installing from source, the installer will attemptto download and install python_dateutil from PyPI. Note thatpython_dateutil also depends on six. pip and other packagemanagers should handle installing that secondary dependencyautomatically.
pyparsing
Required for matplotlib’s mathtext math rendering support. Ifusing pip, easy_install or installing from source, the installerwill attempt to download and install pyparsing from PyPI.
six 1.4 or later
Python 2/3 compatibility library. This is also a dependency ofdateutil.
libpng 1.2 (or later)
library for loading and saving PNG files (download). libpng requireszlib.
pytz
Used to manipulate time-zone aware datetimes.

Optional GUI framework¶

These are optional packages which you may want to install to usematplotlib with a user interface toolkit. SeeWhat is a backend? for more details on the optional matplotlibbackends and the capabilities they provide.

tk 8.3 or later
The TCL/Tk widgets library used by the TkAgg backend
pyqt 4.0 or later
The Qt4 widgets library python wrappers for the Qt4Agg backend
pygtk 2.4 or later
The python wrappers for the GTK widgets library for use with theGTK or GTKAgg backend
wxpython 2.8 or later
The python wrappers for the wx widgets library for use with theWX or WXAgg backend

Optional external programs¶

ffmpeg/avconv or mencoder
Required for the animation module to be save out put to movieformats.
ImageMagick
Required for the animation module to be able to save to animated gif.

Optional dependencies¶

Pillow
If Pillow is installed, matplotlib can read and write a largerselection of image file formats.
freetype 2.3 or later
library for reading true type font files.

Download Matplotlib Documentation

Required libraries that ship with matplotlib¶

agg 2.4
The antigrain C++ rendering engine. matplotlib links against theagg template source statically, so it will not affect anything onyour system outside of matplotlib.
PyCXX 6.2.4
A library for writing Python extensions in C++.
qhull 2012.1
A library for computing convex hulls. Used for computing triangulationand meshes.
ttconv
truetype font utility

Building on Linux¶

It is easiest to use your system package manager to install the dependencies.

If you are on Debian/Ubuntu, you can get all the dependenciesrequired to build matplotlib with:

If you are on Fedora/RedHat, you can get all the dependencies requiredto build matplotlib by first installing yum-builddep and thenrunning:

This does not build matplotlib, but it does get the install thebuild dependencies, which will make building from source easier.

Building on OSX¶

Pylab Download Mac

The build situation on OSX is complicated by the various places onecan get the libpng and freetype requirements (darwinports, fink,/usr/X11R6) and the different architectures (e.g., x86, ppc, universal) andthe different OSX version (e.g., 10.4 and 10.5). We recommend that you buildthe way we do for the OSX release: get the source from the tarball or thegit repository and follow the instruction in README.osx.

Building on Windows¶

The Python shipped from http://www.python.org is compiled with Visual Studio2008 for versions before 3.3 and Visual Studio 2010 for 3.3 and later. Pythonextensions are recommended to be compiled with the same compiler. The .NETFramework 4.0 is required for MSBuild (you’ll likely have the requisiteFramework with Visual Studio). In addition to Visual Studio CMake is required for building libpng.

Since there is no canonical Windows package manager the build methods forfreetype, zlib, libpng, tcl, & tk source code are documented as a build scriptat matplotlib-winbuild.