Error : ModuleNotFoundError: No module named 'PyPDF2'. How can I fix it?

Hello,
I use Jupyter notebook with Python 3.12.3 on a windows 11. I installed PyPDF2 to use it with streamlit. But I get the error : ModuleNotFoundError: No module named ‘PyPDF2’.

How can I fix it?
Thank you in advance.

With such little informaton we can only guess…

  • Probably you installed it into a different python environment?
  • Btw, i would use pypdf instead, since PyPDF2 is not maintained anymore and it was merged back into pypdf.
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.