标签: python python-3.x out-of-memory pickle
当我使用pickle加载GB文件时,会报告内存错误,我该如何解决?
我的代码是这样的:
model_file_path = os.path.join(model_directory, model_file_name) with open(model_file_path, 'rb') as fh: return pickle.load(fh)
我的python位是64,版本是3.4.4。