当我试图使用joblib加载.pkl文件时,我遇到了以下错误。
self.name = joblib.load(
os.path.join(BASE_DIR, '../relative/directory/%s.pkl' % name)
)以上代码将产生以下错误。
File "/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/numpy_pickle.py", line 68, in read_zfile
data = zlib.decompress(file_handle.read(), 15, length)
zlib.error: Error -3 while decompressing data: invalid distance too far back以前有人遇到过这个问题吗?
发布于 2014-01-10 16:02:28
这意味着压缩的数据在途中的某个地方被破坏了。
https://stackoverflow.com/questions/21038210
复制相似问题