简体   繁体   English

pygraphviz 的 conda-forge PackagesNotFoundError

[英]conda-forge PackagesNotFoundError for pygraphviz

I am trying to install pygraphviz but conda is not finding it in the channels.我正在尝试安装pygraphviz ,但 conda 在频道中找不到它。 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. Conda-forge已经在频道列表中,我尝试使用-c conda-forge但仍然无法正常工作。 I also tried bioconda channel and did not work.我也尝试bioconda频道,但没有奏效。

> 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.根据文档, Pygraphviz应该在bioconda和 conda - forge 中,但我仍然找不到 package。 I also update conda conda update conda , and still no luck.我也更新了 conda conda update conda ,但仍然没有运气。

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更新:Windows

It appears that there are challenges installing pygraphviz on windows.在 windows 上安装 pygraphviz 似乎存在挑战。 Assuming that graphiz is installe and added to Path, which is a separate program (not python library) these solution might work假设 graphiz 已安装并添加到 Path 中,这是一个单独的程序(不是 python 库),这些解决方案可能有效

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

See SO answers Installing Pygraphviz on Windows请参阅 SO 答案在 Windows 上安装 Pygraphviz

"conda install graphviz pygraphviz -c alubbock" worked for me, within an Anaconda cme.exe terminal (and several failed attempts with other approaches). “conda install graphviz pygraphviz -c alubbock”在 Anaconda cme.exe 终端中为我工作(以及使用其他方法的几次失败尝试)。 Elsewhere I had also been told to install a C+ compiler, which I did within Visual Studio.在其他地方,我也被告知安装 C+ 编译器,我在 Visual Studio 中完成了这项工作。 But maybe you can try without installing the C+ compiler但也许你可以尝试不安装 C+ 编译器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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