Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python csvmapper-和#x27;模块';对象没有属性';DictMapper';_Python_Python 2.7_Importerror_Attributeerror - Fatal编程技术网

Python csvmapper-和#x27;模块';对象没有属性';DictMapper';

Python csvmapper-和#x27;模块';对象没有属性';DictMapper';,python,python-2.7,importerror,attributeerror,Python,Python 2.7,Importerror,Attributeerror,我在Python2.7.8中使用csvmapper 从shell运行我的脚本 这是最基本的 我得到了错误 AttributeError:“模块”对象没有属性“DictMapper” 在研究了这个错误之后,我在第二行添加了这个 from csvmapper import DictMapper 现在我收到这个错误 '导入错误:无法导入名称映射器 在Github上找不到此错误的引用,非常混乱。您是否命名了自己的脚本csvmapper?哇。现在我觉得自己很傻。这就是答案,谢谢你。 from csvma

我在Python2.7.8中使用csvmapper

从shell运行我的脚本

这是最基本的

我得到了错误

AttributeError:“模块”对象没有属性“DictMapper”

在研究了这个错误之后,我在第二行添加了这个

from csvmapper import DictMapper
现在我收到这个错误

'导入错误:无法导入名称映射器


在Github上找不到此错误的引用,非常混乱。

您是否命名了自己的脚本
csvmapper
?哇。现在我觉得自己很傻。这就是答案,谢谢你。
from csvmapper import DictMapper