开发者

Segmentation fault when importing pylab in a python script

I have installed Ubuntu 8.10. I am using python 2.6.4. I have installed the following packages

networkx 1.0rc1 matplotlib 0.99.1.2 scipy 0.7.1 numpy 1.3

when I write the following statement in my code

import pylab

Also this statement gives开发者_开发技巧 a segmentation fault

import matplotlib.pyplot as plt

I receive a segmentation fault. What do I do? The same code works perfectly well on my Windows machine.


try running python through gdb. The top frame of the stacktrace is the (assumed) origin of the segmentation fault. This should give you a rough idea what to write in a bug report. If all of the above packages are from the ubuntu repositories, there should be a good chance that someone in the ubuntu community has an idea of what's going on.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜