问题描述
刚刚通过anaconda安装了一个包(conda install graphviz
),但是ipython找不到它.
Just installed a package through anaconda (conda install graphviz
), but ipython wouldn't find it.
我可以在C:UsersusernameAnacondapkgs
但是没有任何内容:C:UsersusernameAnacondaLibsite-packages
推荐答案
graphviz
conda 包是无 Python 包.它只是将 graphviz 文件放入您的虚拟环境的 Library/
目录中.看例如对于 Library/bin/
目录中的 dot.exe
.
The graphviz
conda package is no Python package. It simply puts the graphviz files into your virtual env's Library/
directory. Look e.g. for dot.exe
in the Library/bin/
directory.
更新:现在有一个python-graphviz
Anaconda.org 上的包,其中包含 graphviz
工具的 Python 接口.只需使用 conda install python-graphviz
安装即可.
(感谢 wedran 和 g-kaklam 发布此解决方案并endolith 通知我).
Update: There exists now a python-graphviz
package at Anaconda.org which contains the Python interface for the graphviz
tool. Simply install it with conda install python-graphviz
.
(Thanks to wedran and g-kaklam for posting this solution and to endolith for notifying me).
这篇关于anaconda - graphviz - 安装后无法导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!