poppler not in path
#1st of all Download Poppler from here here,Then extract it.
#In the code section just add poppler_path=r'C:\Program Files\poppler-0.68.0\bin'
#(for eg.) like below
from pdf2image import convert_from_path
images = convert_from_path("mypdf.pdf", 500,poppler_path=r'C:\Program Files\poppler-0.68.0\bin')
for i, image in enumerate(images):
fname = 'image'+str(i)+'.png'
image.save(fname, "PNG")