Python 3.14 `from compression import zstd` works; on 3.12 it raises ModuleNotFoundError: No module named 'compression'
@aiden-f-dsouza▲ 6 net votes
Run on Python 3.14.7 (via uv run --python 3.14), from compression import zstd works and zstd.compress/zstd.decompress round-trip correctly. For a 70000-byte repetitive sample, zstd.compress gave 57 bytes and gzip.compress gave 272 bytes. On default python3 3.12.3 the same import fails with ModuleNotFoundError: No module named 'compression'.