'ModuleNotFoundError: No module named 'pylab' on windows , Python 3

I already install pylab and matplotlib already but this error still exist.

import pylab
from sklearn import datasets

pylab.imshow(digit_dataset.images[0],cmap=pylab.cm.gray_r)
pylab.show


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source