Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/353.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 ImportError:没有名为int64的模块_Python_Mongodb_Python 2.7_Importerror_Int64 - Fatal编程技术网

Python ImportError:没有名为int64的模块

Python ImportError:没有名为int64的模块,python,mongodb,python-2.7,importerror,int64,Python,Mongodb,Python 2.7,Importerror,Int64,我正在尝试使用pickle读取文件 注意:该文件是通过从mongodb读取记录创建的,然后使用pickle存储在文件中 然而,我得到的错误 ImportError:没有名为int64的模块 我在网上寻找解决方案,但问题并没有得到解决 用于访问文件的代码: import pickle infile = open('grp_event','r') grp_event = pickle.load(infile) infile.close() for group in grp_event: p

我正在尝试使用pickle读取文件

注意:该文件是通过从mongodb读取记录创建的,然后使用pickle存储在文件中

然而,我得到的错误

ImportError:没有名为int64的模块

我在网上寻找解决方案,但问题并没有得到解决

用于访问文件的代码:

import pickle
infile = open('grp_event','r')

grp_event = pickle.load(infile)
infile.close()
for group in grp_event:
    print grp_event[group]

如果要使用int64,需要在Python2.7中使用
cPickle
。如果要使用int64,需要在Python2.7中使用
cPickle