No module named 'PyPDF2._codecs', even after already installed

Question:

I have installed PyPDF2==2.3.0, but I still get the error below when I import PyPDF2.

The error message is:

ModuleNotFoundError: No module named ‘PyPDF2._codecs’

Asked By: Guy

||

Answers:

This issue was only present in the PyPI distribution of PyPDF2==2.3.0 for a couple of hours. It was fixed with release 2.3.1. See #1011 for more details

I’m the maintainer of PyPDF2. I’m sorry I caused some headaches.

You can update PyPDF2 via:

pip install PyPDF2 --upgrade
Answered By: Martin Thoma

SOLVED!
I faced the same problem. I installed used pip3, pip everything. But successfully running after installing from below command:

pipenv install PyPDF2
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.