Issue 1:
I want to plot this simple code:

import numpy as np
import matplotlib.pyplot as plt

# Example data
t = np.arange(0.0, 1.0 + 0.01, 0.01)
s = np.cos(4 * np.pi * t) + 2

plt.rc('text', usetex=True)
plt.rc('font', family='serif')
plt.plot(t, s)

plt.xlabel(r'\textbf{time} (s)')
plt.ylabel(r'\textit{voltage} (mV)',fontsize=16)
plt.title(r"\TeX\ is Number "
r"$\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!",
fontsize=16, color='gray')
# Make room for the ridiculously large title.
plt.subplots_adjust(top=0.8)

plt.savefig('tex_demo')
plt.show()

the face the following error:

runfile('C:/Workspace/jaza0001/untitled0.py', wdir='C:/Workspace/jaza0001')
Traceback (most recent call last):

File "<ipython-input-13-2954d5a98220>", line 1, in <module>
runfile('C:/Workspace/jaza0001/untitled0.py', wdir='C:/Workspace/jaza0001')

File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 704, in runfile
execfile(filename, namespace)

File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Workspace/jaza0001/untitled0.py", line 20, in <module>
plt.savefig('tex_demo')

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\pyplot.py", line 689, in savefig
res = fig.savefig(*args, **kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\figure.py", line 2094, in savefig
self.canvas.print_figure(fname, **kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backend_bases.py", line 2075, in print_figure
**kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 510, in print_png
FigureCanvasAgg.draw(self)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 402, in draw
self.figure.draw(self.renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axes\_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1187, in draw
renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 313, in _get_layout
ismath=ismath)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 328, in make_dvi
texfile], tex)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)

File "C:\Temp\Anaconda\lib\subprocess.py", line 389, in check_output
**kwargs).stdout

File "C:\Temp\Anaconda\lib\subprocess.py", line 466, in run
with Popen(*popenargs, **kwargs) as process:

File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 171, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)

File "C:\Temp\Anaconda\lib\subprocess.py", line 769, in __init__
restore_signals, start_new_session)

File "C:\Temp\Anaconda\lib\subprocess.py", line 1172, in _execute_child
startupinfo)

FileNotFoundError: [WinError 2] The system cannot find the file specified

Error in callback <function install_repl_displayhook.<locals>.post_execute at 0x000001C8A5C1E6A8> (for post_execute):
Traceback (most recent call last):

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\pyplot.py", line 109, in post_execute
draw_all()

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\_pylab_helpers.py", line 132, in draw_all
f_mgr.canvas.draw_idle()

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backend_bases.py", line 1899, in draw_idle
self.draw(*args, **kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 402, in draw
self.figure.draw(self.renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axes\_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1187, in draw
renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 313, in _get_layout
ismath=ismath)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 328, in make_dvi
texfile], tex)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)

File "C:\Temp\Anaconda\lib\subprocess.py", line 389, in check_output
**kwargs).stdout

File "C:\Temp\Anaconda\lib\subprocess.py", line 466, in run
with Popen(*popenargs, **kwargs) as process:

File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 171, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)

File "C:\Temp\Anaconda\lib\subprocess.py", line 769, in __init__
restore_signals, start_new_session)

File "C:\Temp\Anaconda\lib\subprocess.py", line 1172, in _execute_child
startupinfo)

FileNotFoundError: [WinError 2] The system cannot find the file specified

Traceback (most recent call last):

File "C:\Temp\Anaconda\lib\site-packages\IPython\core\formatters.py", line 341, in __call__
return printer(obj)

File "C:\Temp\Anaconda\lib\site-packages\IPython\core\pylabtools.py", line 244, in <lambda>
png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))

File "C:\Temp\Anaconda\lib\site-packages\IPython\core\pylabtools.py", line 128, in print_figure
fig.canvas.print_figure(bytes_io, **kw)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backend_bases.py", line 2049, in print_figure
**kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 510, in print_png
FigureCanvasAgg.draw(self)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 402, in draw
self.figure.draw(self.renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axes\_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1187, in draw
renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 313, in _get_layout
ismath=ismath)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 328, in make_dvi
texfile], tex)

File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)

File "C:\Temp\Anaconda\lib\subprocess.py", line 389, in check_output
**kwargs).stdout

File "C:\Temp\Anaconda\lib\subprocess.py", line 466, in run
with Popen(*popenargs, **kwargs) as process:

File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 171, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)

File "C:\Temp\Anaconda\lib\subprocess.py", line 769, in __init__
restore_signals, start_new_session)

File "C:\Temp\Anaconda\lib\subprocess.py", line 1172, in _execute_child
startupinfo)

FileNotFoundError: [WinError 2] The system cannot find the file specified

<Figure size 432x288 with 1 Axes>

Issue 2:
Bug report

Bug summary

I am unable to import matplotlib.pyplot starting in version 3.0.0. Might be related to Issue #9485?

Code for reproduction

import matplotlib.pyplot as plt

Actual outcome

I get the following traceback when executing the above import

Traceback (most recent call last):
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 1353, in <module>
fontManager = json_load(_fmcache)
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 888, in json_load
with open(filename, 'r') as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\username\\.matplotlib\\fontlist-v300.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import matplotlib.pyplot as plt
File "C:\Python\Python35\lib\site-packages\matplotlib\pyplot.py", line 32, in <module>
import matplotlib.colorbar
File "C:\Python\Python35\lib\site-packages\matplotlib\colorbar.py", line 32, in <module>
import matplotlib.contour as contour
File "C:\Python\Python35\lib\site-packages\matplotlib\contour.py", line 18, in <module>
import matplotlib.font_manager as font_manager
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 1363, in <module>
_rebuild()
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 1344, in _rebuild
fontManager = FontManager()
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 978, in __init__
ttffiles = findSystemFonts(paths) + findSystemFonts()
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 264, in findSystemFonts
fontfiles.update(win32InstalledFonts(fontext=fontext))
TypeError: 'NoneType' object is not iterable

Matplotlib version

Operating system: Windows 10 64-bit

Matplotlib version: 3.0.0

Matplotlib backend: TkAgg

Python version: 3.5.4

Jupyter version (if applicable): NA

Other libraries: NA

Installed via pip