r/learningpython • u/ngonz17 • Oct 17 '23
How to install pymupdf using conda?
I tried to install pymupdf using "conda install pymupdf" but no luck. It outputs the following. Any ideas what I am doing wrong? I'm running Python 3.12. I would prefer to use the latest possible version of pymupdf that supports Python 3.12. Thank you.
-------------------------------------------
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- pymupdf
Current channels:
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
and use the search bar at the top of the page.
View all comments
1
u/NoZebra4503 Oct 17 '23
In order to be installable by "conda install", a package has to apply to being included in the respective Anaconda repository using a rather tedious process. PyMuPDF is focussing on extending its functionality currently. You can still use pip install for a conda-controlled Python installation without problems:
python -m pip install pymupdf.