ImportError:没有名为array_import的模块----- scipy
问题描述:
我在scipy中导入io模块时遇到问题 并且python shell显示如下错误.
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
但那也不起作用
ImportError:没有名为loadtxt的模块
ImportError: No module named loadtxt
答
numpy.loadtxt
是一个函数,而不是一个模块.这就是为什么您不能导入loadtxt
:
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>