4   5  Black   Blue  Male    11

import PyPDF2
Traceback (most recent call last):

  File "<ipython-input-25-69e9e6162b4c>", line 1, in <module>
    import PyPDF2

ModuleNotFoundError: No module named 'PyPDF2'


pip install PyPDF2
Collecting PyPDF2
  Downloading PyPDF2-1.26.0.tar.gz (77 kB)
Building wheels for collected packages: PyPDF2
  Building wheel for PyPDF2 (setup.py): started
  Building wheel for PyPDF2 (setup.py): finished with status 'done'
  Created wheel for PyPDF2: filename=PyPDF2-1.26.0-py3-none-any.whl size=61087 sha256=5ab1527ce13d1429a6239ab3e61e907f2f199b012668615c1f49c94441ec09d4
  Stored in directory: c:\users\lenovo\appdata\local\pip\cache\wheels\80\1a\24\648467ade3a77ed20f35cfd2badd32134e96dd25ca811e64b3
Successfully built PyPDF2
Installing collected packages: PyPDF2
Successfully installed PyPDF2-1.26.0
Note: you may need to restart the kernel to use updated packages.

import PyPDF2

pdfFileObj = open('data/Li2011Wiley.pdf', 'rb')

pdfReader = PyPDF2.PdfFileReader(pdfFileObj)

pdfReader.numPages