Install fails when installing matplotlib

Here is error:
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
matplotlib: yes [2.0.2]
python: yes [3.7.3 (default, Mar 27 2019, 17:13:21) [MSC
v.1915 64 bit (AMD64)]]
platform: yes [win32]

REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.15.4]
six: yes [using six version 1.12.0]
dateutil: yes [using dateutil version 2.8.0]
functools32: yes [Not required]
subprocess32: yes [Not required]
pytz: yes [using pytz version 2018.9]
cycler: yes [using cycler version 0.10.0]
tornado: yes [using tornado version 6.0.2]
pyparsing: yes [using pyparsing version 2.3.1]
libagg: yes [pkg-config information for ‘libagg’ could not
be found. Using local copy.]
freetype: no [The C/C++ header for freetype (ft2build.h)
could not be found. You may need to install the
development package.]
png: no [The C/C++ header for png (png.h) could not be
found. You may need to install the development
package.]
qhull: yes [pkg-config information for ‘qhull’ could not be
found. Using local copy.]

OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: no [skipping due to configuration]
toolkits_tests: no [skipping due to configuration]

OPTIONAL BACKEND EXTENSIONS
macosx: no [Mac OS-X only]
qt5agg: yes [installing, Qt: 5.9.6, PyQt: 5.9.6]
qt4agg: no [PySide not found; PyQt4 not found]
gtk3agg: yes [installing, unknown (can not use
multiprocessing to determine)]
gtk3cairo: yes [installing, unknown (can not use
multiprocessing to determine)]
gtkagg: no [Requires pygtk]
tkagg: yes [installing; run-time loading from Python Tcl /
Tk]
wxagg: no [requires wxPython]
gtk: no [Requires pygtk]
agg: yes [installing]
cairo: no [cairocffi or pycairo not found]
windowing: yes [installing]

OPTIONAL LATEX DEPENDENCIES
dvipng: no
ghostscript: no
latex: no
pdftops: no

OPTIONAL PACKAGE DATA
dlls: no [skipping due to configuration]

============================================================================
* The following required packages can not be built:
* freetype, png

I have tried installing freetype and png with PIP and Conda.

I am at the border of beginner and intermediate with Python.

Hi @normandantzig1 - not sure if you got further with this, but in case not or if it’s useful to others, the Matplotlib repo’s install page details how to install freetype and libpng. This isn’t really anything to do with TTS but I happened to find the answer so thought I’d share it.

Key issue you seem to have had is assuming they were Python packages (they’re not)

As you’re on a Mac see the section for building for it here: