ModuleNotFoundError: No module named 'cycler'

when I use matplotlib on pycharm without using 'cycler', it shows the above type of error. Could you help? Appreciate!

      import cv2 as cv
      import numpy as np
      from matplotlib import pyplot as plt

      img = cv.imread('lena.jpg',-1)
      cv.imshow('image',img)
      img =cv.cvtColor(img, cv.COLOR_BGR2RGB)

      plt.imshow(img)
      plt.show(0)

      cv.waitKey(0)
      cv.destroyAllWindows()

1 answer

  • answered 2019-06-25 03:01 Aashish Kaushik

    You can install cycler using below command:

    pip install cycler (if you have pip installed)

    If still you are facing same issue:

    Please see tutorials: https://youtu.be/PXD7faWtdAg