Search code examples
pythonpdf-generationimporterror

"no module named PyPDF2" error


I use Spyder, with Python 2.7, on a windows 10. I was able to install the PyPDF2 package with a conda command from my prompt. I said installation complete. Yet, If I try to run a simple import command:

import PyPDF2

I get the error:

ImportError: No module named PyPDF2

How can I fix this?


Solution

  • If you use python3 maybe

    apt-get install python3-pypdf2