开发者

ImportError: No module named array_import -----scipy

I am facing problem with importing io module in scipy and python shell shows an error as following.

import scipy.io.array_import

ImportError: No module named array_import

Please let me know how to solve this.

By reading some post on net I also tried using

import numpy.loadtxt  

but that too doesnt work开发者_Python百科

ImportError: No module named loadtxt


See this message on the SciPy user mailing list:

I am facing problem with importing io module in scipy and python shell shows an error as following.

import scipy.io.array_import
ImportError: No module named array_import

array_import was removed in Scipy 0.8. If you are looking for read_array and write_array, you should use numpy.savetxt and numpy.loadtxt instead.


numpy.loadtxt is a function, not a module. That's why you can't import loadtxt:

In [33]: import numpy
In [34]: numpy.loadtxt
Out[34]: <function loadtxt at 0x9f8bca4>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜