ModuleNotFoundError: No module named 'pdf2image' from pdf2image import convert_from_path

ModuleNotFoundError: No module named ‘pdf2image’
Traceback:
File “C:\Users\Asus\AppData\Local\Programs\Python\Python312\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py”, line 542, in _run_script
exec(code, module.dict)
File “F:\projects\file converter\app.py”, line 2, in
from pdf2image import convert_from_path

You need to install pdf2image, which in windows is probably not as straightforward as you would like.

1 Like