Reputation: 15
After installing pikepdf, while trying code with pikepdf, I am getting error messages as below :
Upvotes: 1
Views: 1445
Reputation: 4799
Pdf
, not pdf
. Use:from pikepdf import Pdf
from pikepdf import ...
does not actually import pikepdf
itself. Run this to load it:import pikepdf
Pdf.open()
not pikepdf.open()
It seems best for you to review the docs for pikepdf
.
Upvotes: 0
Reputation: 994
You can restart your kernel of your notebook and install pikepdf
!pip install pikepdf
Then you should import it by
from pikepdf import pdf
and so on.
You should install your dependencies first then run the code.
Upvotes: 0