2

I'm trying to install some new packages pykg-config to get access to functions necessary for a university assignment. When I try to install, I get the following:

Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - pykg-config

Current channels:

  - https://conda.anaconda.org/auto/win-64
  - https://conda.anaconda.org/auto/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
  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/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.

I am trying to install pdftotext pip install pdftotext but I am getting errors that are stating that I need to install first this package pykg-config. Now when I try to install the package pykg-config I received the above errors again kindly help.

Dominic
  • 341
  • 4
  • 15
  • 1
    If you are using conda, you probobly want to use `conda install ...` instead of `pip` – Jacek Rojek Jun 29 '20 at 10:24
  • Still getting errors , `PackagesNotFoundError: The following packages are not available from current channels: - pdftotext Current channels: - https://repo.anaconda.com/pkgs/main/win-64 - https://repo.anaconda.com/pkgs/main/noarch - https://repo.anaconda.com/pkgs/r/win-64 - https://conda.anaconda.org/conda-forge/win-64 - https://conda.anaconda.org/conda-forge/noarch` – Dominic Jun 29 '20 at 10:29
  • force using conda-forge channel `conda install -c conda-forge pykg-config` – Jacek Rojek Jun 29 '20 at 10:36
  • even with that, I am still getting the same errors – Dominic Jun 29 '20 at 10:48
  • `[...] but I am getting errors that are stating that I need to install first this package pykg-config` - would be helpful if you could add the error message you are getting there. – cel Jun 29 '20 at 12:01
  • What I would try is: `conda install -c conda-forge poppler pkg-config` followed by `pip install pdftotext`. I would recommend doing this in a new environment. – cel Jun 29 '20 at 12:09

1 Answers1

0

Hi I've faced the same issue earlier today and I found the solution here

ahmed ashref
  • 145
  • 1
  • 8