title: Could not find or load the Qt platform plugin "xcb"
body: <p>On my OS(Linux Mint Debian Edition 2), except for the system python(<em>/usr/bin/python</em>) installed by the <strong>apt</strong>, I also installed the <strong>anaconda</strong>. But I've encounterd a problem running the following code with the <strong>anaconda</strong> python</p>
  
  <pre><code># test.py
  import matplotlib.pyplot as plt
  import numpy as np
  x = np.array([0, 1])
  plt.scatter(x, x)
  plt.show()
  </code></pre>
  
  <p>The error is</p>
  
  <blockquote>
    <p>This application failed to start because it could not find or load the
    Qt platform plugin "xcb".</p>
    
    <p>Reinstalling the application may fix this problem. </p>
    
    <p>Aborted</p>
  </blockquote>
  
  <p>But if I try with the system python, i.e., <code>/usr/bin/python test.py</code>, it works correctly.</p>
  
  <p>Then I tried the ipythons, of system and of anaconda, the result is same as before: the anaconda ipython kernel died.</p>
  
  <p>And I tried add the ipython magic <code>%matplotlib inline</code> into the code, the anaconda ipython works correctly now. But if I replace the <code>%matplotlib inline</code> with <code>%pylab</code>, the anaconda ipython died again.</p>
  
  <p>Note: I use the python 2.7. System ipython's version is 2.3, anaconda ipython's version is 3.2.</p>