"no module named PyPDF2" error
In my case, I was trying to import 'pyPdf2' instead of 'PyPDF2'. Observe the case.
import PyPDF2
is correct.
This is the case which I followed for python3. For python2 try with pip:
pip install PyPDF2
If you use python3 maybe
apt-get install python3-pypdf2