title: Python 2 import error: cannot import name unpack_labeled_data
body: <p>I m trying to import import numpy as np. This is my code</p>
  
  <pre><code>import cv2
  from matplotlib import pyplot as plt
  
  img = cv2.imread('messi5.jpg',0)
  plt.imshow(img, cmap = 'gray', interpolation = 'bicubic')
  plt.xticks([]), plt.yticks([])
  plt.show()
  </code></pre>
  
  <p>But I get an error,</p>
  
  <pre><code>C:\Python27\pythonw.exe C:/Users/baqir/PycharmProjects/untitled/cdsk1.py
  Traceback (most recent call last):
  File "C:/Users/baqir/PycharmProjects/untitled/cdsk1.py", line 2, in &lt;module&gt;
  from matplotlib import pyplot as plt
  File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 29, in       &lt;module&gt;
  from matplotlib.figure import Figure, figaspect
  File "C:\Python27\lib\site-packages\matplotlib\figure.py", line 36, in &lt;module&gt;
  from matplotlib.axes import Axes, SubplotBase, subplot_class_factory
  File "C:\Python27\lib\site-packages\matplotlib\axes\__init__.py", line 4, in &lt;module&gt;
  from ._subplots import *
  File "C:\Python27\lib\site-packages\matplotlib\axes\_subplots.py", line 10, in &lt;module&gt;
  from matplotlib.axes._axes import Axes
  File "C:\Python27\lib\site-packages\matplotlib\axes\_axes.py", line 14, in &lt;module&gt;
  from matplotlib import unpack_labeled_data
  
  ImportError: cannot import name unpack_labeled_data `
  </code></pre>
  
  <p>I googled it but did not find any solution. Can anyone tell what here I m doing wrong?</p>