I successfully ran the command:
pip install pymupdf
Successfully installed pymupdf-1.18.15
However, both
import fitz
and import pymupdf
both output an
ModuleNotFoundError
.
Why is python giving me a ModuleNotFoundError
?
I successfully ran the command:
pip install pymupdf
Successfully installed pymupdf-1.18.15
However, both
import fitz
and import pymupdf
both output an
ModuleNotFoundError
.
Why is python giving me a ModuleNotFoundError
?
According to PyMuPDF Documentation you need to download a wheel file that is specific to your platform (e.g windows, mac, linux). The wheel files can be found on PyMuPDF files.
Make sure to check the correct version of your python running on
your system python -V
Once downloaded place it at the root directory of your project.
Then run pip install PyMuPDF-<...>.whl
replace PyMuPDF-<...>.whl
with the name of the wheel file you have downloaded in (1) above.
Now import fitz
should be available in your module.