title: Matplotlib cannot find Font family [u'sans-serif']
body: <p>I installed matplotlib 2.2.3 using anaconda (with python 2.7.16). I always have this missing font problem on the higher versions of matplotlib (> 1.5.1). </p>
  
  <pre><code>/home/satadru/anaconda2/lib/python2.7/site-packages/matplotlib/font_manager.py:1331: UserWarning: findfont: Font family [u'serif'] not found. Falling back to DejaVu Sans(prop.get_family(), self.defaultFamily[fontext]))
  </code></pre>
  
  <p>I know there are many solutions available on the web but nothing solved my problem. I already tried the following suggestions, but none of them helped:</p>
  
  <pre><code>sudo apt-get install msttcorefonts -qq
  sudo apt install font-manager
  rm ~/.cache/matplotlib -fr
  </code></pre>
  
  <p>I just don't want to go back to an older version of matplotlib again just to avoid the problem. Please help. My code is</p>
  
  <pre><code> from matplotlib import rcParams
   rcParams['font.family'] = 'sans-serif'
   rcParams['font.sans-serif'] = ['Tahoma']
  
   import matplotlib.pyplot as plt
  
   .......................
  </code></pre>