更新时间:2023-10-03 14:15:58
来自avro/datafile.py
from avro/datafile.py
try:
import snappy
has_snappy = True
except ImportError:
has_snappy = False
...
# Codecs supported by container files:
VALID_CODECS = frozenset(['null', 'deflate'])
if has_snappy:
VALID_CODECS = frozenset.union(VALID_CODECS, ['snappy'])
所以您必须安装python-snappy lib
so you have to install python-snappy lib