0

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?

jkhadka
  • 2,443
  • 8
  • 34
  • 56
  • In the conda repositories pygraphviz is only available for linux and osx, but not for windows. – cel Apr 21 '20 at 09:38
  • :( that is just sad! And now i saw that osx and linux tag in conda documentation. Thanks a lot for pointing it out for me. – jkhadka Apr 21 '20 at 09:42
  • Just as a side note, you should prefer to just leave out the `-c anaconda`, it is just a mirror of the default channels – FlyingTeller Apr 21 '20 at 09:44
  • I'm voting to close this, since the Conda package simply isn't available on Windows, and that information is present on the [package's page on Anaconda Cloud](https://anaconda.org/conda-forge/pygraphviz). – AMC Apr 27 '20 at 05:47

2 Answers2

1

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

Prayson W. Daniel
  • 14,191
  • 4
  • 51
  • 57
0

"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

  • If you're working in conda, the C compiler comes pre-installed with it. That's the beauty of working with conda, it makes life so much easier installing Python packages. – joanis Dec 24 '21 at 23:57