当我试图在我的Ubuntu机器上运行Anaconda3中的conda install python-graphviz
时,它卡在Solving environment
:
(base) $ conda install python-graphviz
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: /
有什么问题吗?
我也遇到了同样的问题。以下是我的解决方案:
手动安装graphviz。
。对于ubuntu:
sudo apt install graphviz graphviz-dev
然后对python包执行pip安装。
pip install graphviz
令人困惑的是,graphviz的pip安装与python-graphviz的conda安装是相同的。(糟糕的命名)
用我的手机打字,所以最好仔细检查我的命令是否有拼写错误。让我知道这是否解决了问题。