title: Can't import matplotlib (anaconda)
body: <p>I have installed anaconda 4.4.0 on Ubuntu 14.04. I have had some trouble with importing matplotlib.pyplot. I have looked through a bunch of sites, but no answers would fix my problem.</p>
  
  <p>Here's the error message that I get:</p>
  
  <pre><code>&gt;&gt;&gt; import matplotlib.pyplot as plt
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/home/lucasgruwez/anaconda3/lib/python3.6/site-packages/matplotlib/pyplot.py", line 115, in &lt;module&gt;
      _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
    File "/home/lucasgruwez/anaconda3/lib/python3.6/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
      globals(),locals(),[backend_name],0)
    File "/home/lucasgruwez/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 16, in &lt;module&gt;
      from .backend_qt5 import QtCore
    File "/home/lucasgruwez/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 26, in &lt;module&gt;
      import matplotlib.backends.qt_editor.figureoptions as figureoptions
    File "/home/lucasgruwez/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_editor/figureoptions.py", line 20, in &lt;module&gt;
      import matplotlib.backends.qt_editor.formlayout as formlayout
    File "/home/lucasgruwez/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_editor/formlayout.py", line 56, in &lt;module&gt;
      from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
    File "/home/lucasgruwez/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_compat.py", line 128, in &lt;module&gt;
      from PyQt5 import QtCore, QtGui, QtWidgets
  ImportError: libGL.so.1: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>Does anyone know how to fix this?</p>
  
  <p>Thank you</p>
  
  <h1>Edit</h1>
  
  <p>The error message changed: </p>
  
  <pre><code>&gt;&gt;&gt; import matplotlib.pyplot as plt
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/home/lucasgruwez/anaconda3/lib/python3.6/site-packages/matplotlib/__init__.py", line 105, in &lt;module&gt;
      import six
    File "/home/lucasgruwez/anaconda3/lib/python3.6/site-packages/six.py", line 25, in &lt;module&gt;
      import functools
    File "/home/lucasgruwez/anaconda3/lib/python3.6/functools.py", line 21, in &lt;module&gt;
      from collections import namedtuple
    File "/home/lucasgruwez/anaconda3/lib/python3.6/site-packages/matplotlib/collections.py", line 15, in &lt;module&gt;
      from six.moves import zip
  ModuleNotFoundError: No module named 'six.moves'; 'six' is not a package
  </code></pre>