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:

  - 
  - 
  - 
  - 
  - 
  - 
  - 
  - 
  - 
  - 

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.

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?

4

2 Answers

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

4

"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

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest