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 inscipy
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 usenumpy.savetxt
andnumpy.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>
精彩评论