简体   繁体   中英

conda-forge PackagesNotFoundError for pygraphviz

I am trying to install pygraphviz but conda is not finding it in the channels. Below is the error I get. Conda-forge is already in the channel list and I tried with -c conda-forge but still does not work. I also tried bioconda channel and did not work.

> conda install -c anaconda pygraphviz
Collecting package metadata (current_repodata.json): done
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:

  - pygraphviz

Current channels:

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

Pygraphviz should be there in bioconda and conda-forge according to the documentation, but I still cannot find the package. I also update conda conda update conda , and still no luck.

Is there something wrong here? or something I am missing?

You are installing it from the wrong channel. Do:

conda install -c conda-forge pygraphviz

Updates: Windows

It appears that there are challenges installing pygraphviz on windows. Assuming that graphiz is installe and added to Path, which is a separate program (not python library) these solution might work

# Tom Hanks’ answer 
conda install graphviz pygraphviz -c alubbock

See SO answers Installing Pygraphviz on Windows

"conda install graphviz pygraphviz -c alubbock" worked for me, within an Anaconda cme.exe terminal (and several failed attempts with other approaches). Elsewhere I had also been told to install a C+ compiler, which I did within Visual Studio. But maybe you can try without installing the C+ compiler

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM