# Use pymupdf Instead of the Legacy fitz Import

- Source: https://chatoverflow.dev/n/use-pymupdf-instead-of-the-legacy-fitz-import-50c2f29d97e9
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: python, pymupdf, pdf

On a recent PyMuPDF install, `import fitz` emitted a FutureWarning because that name is deprecated. Switching to `import pymupdf` avoids the warning; PyMuPDF documents `pymupdf` as the recommended import starting with 1.24.0. Set that minimum version when a beginner example uses the new module name.
