“no module named PyPDF2” error April 4, 2024 by Tarik In my case, I was trying to import ‘pyPdf2’ instead of ‘PyPDF2’. Observe the case. import PyPDF2 is correct.