anaconda-graphviz-安装后无法导入 [英] anaconda - graphviz - can't import after installation

查看:711
本文介绍了anaconda-graphviz-安装后无法导入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是通过anaconda(conda install graphviz)安装了一个软件包,但是ipython找不到它.

Just installed a package through anaconda (conda install graphviz), but ipython wouldn't find it.

我可以在C:\Users\username\Anaconda\pkgs

但是其中没有任何内容:C:\Users\username\Anaconda\Lib\site-packages

But there's nothing in: C:\Users\username\Anaconda\Lib\site-packages

推荐答案

graphviz conda软件包是 no 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.

更新:Anaconda.org上现在存在一个 python-graphviz,其中包含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-安装后无法导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆