我一直在尝试安装Poppler以使用Anaconda Prompt使用pdf2image进行pdf到jpeg的转换。
我尝试运行此命令: conda install -c conda-forge poppler
但是,它卡在“解决环境”上,什么也没有发生。
我尝试了另一种方法,但是它给出了以下错误:
(base) C:\Users\taman>conda install -c conda-forge/label/cf201901 poppler
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from
current channels:
- poppler
Current channels:
- https://conda.anaconda.org/conda-forge/label/cf201901/win-64
- https://conda.anaconda.org/conda-forge/label/cf201901/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
https://anaconda.org
and use the search bar at the top of the page.
答案 0 :(得分:1)
访问频道https://conda.anaconda.org/conda-forge/label/cf201901/win-64时,您发现没有poppler软件包。
我建议您从https://conda.anaconda.org/conda-forge/频道进行安装
conda install -c conda-forge poppler
答案 1 :(得分:1)
Windows上的Poppler
从Windows下载适用于Windows 32/64位的miniconda https://docs.conda.io/en/latest/miniconda.html
使用以下命令为Windows安装poppler:
conda install -c conda-forge poppler
or
conda install -c conda-forge/label/gcc7 poppler
or
conda install -c conda-forge/label/cf201901 poppler
答案 2 :(得分:0)
尝试了几种方法之后,最终在此链接上给出了有效的方法: https://github.com/QISKit/qiskit-terra/issues/586
我必须手动下载该库,使用7-zip软件解锁zip文件夹,然后将bin地址添加到环境变量路径中。