为 igraph 安装 pycairo 有什么问题?
我按照此处的说明 要在 win 上安装 pycairo 并能够在 igraph 中使用绘图,
我有 python 2.7 pycairo 1.8.10
和上面链接中写入的具有相同编号的 dll 文件,然后我使用了编写的测试,但收到了消息:
from igraph import *
g = Graph.Famous("petersen")
plot(g)
发生错误导致照片或视频无法显示。 错误代码:0x800706ba
在尝试保存到文件时,我也收到以下错误。
from igraph import *
g = Graph.Famous("petersen")
plot(g, "test.png")
这给出了以下错误:
回溯(最近一次调用最后一次): 文件“”,第 1 行,位于
文件“C:\Program Files (x86)\Python27\lib\site-packages\igraph\drawing__init__.py”,第 438 行,在图中
结果.save()
文件“C:\Program Files (x86)\Python27\lib\site-packages\igraph\drawing__init__.py”,第 299 行,保存
返回 self._surface.write_to_png(fname)
IOError:写入输出流时出错
为什么这不起作用?
I followed the instructions here
to install pycairo on win and be able to use plotting in igraph
I have python 2.7
pycairo 1.8.10
and dll files with the same numbers written in the above link, then I used the test written but I got the message:
from igraph import *
g = Graph.Famous("petersen")
plot(g)
An error is preventing the photo or video from being displayed.
Error code: 0x800706ba
I also get the following error when trying to save to a file.
from igraph import *
g = Graph.Famous("petersen")
plot(g, "test.png")
Which gives the following error:
Traceback (most recent call last):
File "", line 1, inFile "C:\Program Files (x86)\Python27\lib\site-packages\igraph\drawing__init__.py", line 438, in plot
result.save()
File "C:\Program Files (x86)\Python27\lib\site-packages\igraph\drawing__init__.py", line 299, in save
return self._surface.write_to_png(fname)
IOError: error while writing to output stream
Why is this not working?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论