使用 python graphviz ImportError:没有名为 _gv 的模块
我正在尝试将 graphviz 与 python 一起使用,但出现错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.6/gv.py", line 7, in <module>
import _gv
ImportError: No module named _gv
系统状态:
dpkg -l|grep graphviz
ii graphviz 2.20.2-3ubuntu5 rich set of graph drawing tools
ii libgraphviz4 2.20.2-3ubuntu5 rich set of graph drawing tools
ii libgv-python 2.20.2-3ubuntu5 Python bindings for graphviz
ii python-pygraphviz 0.99-2ubuntu1 Python interface to the Graphviz graph layou
我安装了 Ubuntu 9.10 和 python2.6
我在互联网上搜索并发现可能是符号链接问题,但他们建议的解决方法没有为我工作。
I'm trying to use graphviz with python and I get the error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.6/gv.py", line 7, in <module>
import _gv
ImportError: No module named _gv
The system state:
dpkg -l|grep graphviz
ii graphviz 2.20.2-3ubuntu5 rich set of graph drawing tools
ii libgraphviz4 2.20.2-3ubuntu5 rich set of graph drawing tools
ii libgv-python 2.20.2-3ubuntu5 Python bindings for graphviz
ii python-pygraphviz 0.99-2ubuntu1 Python interface to the Graphviz graph layou
I have Ubuntu 9.10 installed and python2.6
I searched at the internet and found out that probably it's symlink problem, but the workaround they suggested didn't work for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我解决了这个问题。解决方案是:
I fixed the problem. The solution was:
对于 Ubuntu 10.04,
For Ubuntu 10.04,