Gautam Mukherjee
Gautam Mukherjee

Reputation: 11

How do i resolve pyPDF2 import error on pythonanywhere

on pythonanywhere bash console, I installed pyPDF2 using pip install. when I run the app, always getting error at below line: from PyPDF2 import PdfReader **error ModuleNotFoundError: No module named 'pyPdf2 ** Need help to resolve this...thanks

I tried installing pypdf and using that package. doesnt work either.

Upvotes: 1

Views: 71

Answers (1)

dev_light
dev_light

Reputation: 4106

There is a notice about this package on on PyPi

The PyPDF2 project is going back to its roots. PyPDF2==3.0.X will be the last version of PyPDF2. Development will continue with pypdf==3.1.0.

So use pypdf. Install by running pip install pypdf.

Also ensure you are installing packages correctly in the right environment especially if you're using virtualenvs.

Upvotes: 2

Related Questions