Install & Compatibility
Where this runs
tested against v1.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 20.6s · import 1.832s · 445MB
449MB installed
● package 449MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
M4
✓ from datasetsforecast.m4 import M4
✗ from datasetsforecast import M4
M4 is a class in the m4 module, not top-level.
M5
✓ from datasetsforecast.m5 import M5
✗ from datasetsforecast import M5
M5 is a class in the m5 module.
HierarchicalData
✓ from datasetsforecast.hierarchical import HierarchicalData
✗ from datasetsforecast import HierarchicalData
HierarchicalData is in the hierarchical module.
Load the M4 yearly dataset and preview the training set.
from datasetsforecast.m4 import M4
dataset = M4.load('Yearly')
print(dataset['train'].head())
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'datasetsforecast.losses'
The 'losses' module was removed in v1.0.0 as a breaking change.
fixRemove any import of `datasetsforecast.losses`. Use another metrics library or compute metrics manually.
AttributeError: module 'datasetsforecast' has no attribute 'M4'
M4 is not exported at the top level; it's in `datasetsforecast.m4`.
fixChange the import to `from datasetsforecast.m4 import M4`.
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://zenodo.org/record/...
Outdated dataset download URL, fixed in v1.0.1 for M3 and other datasets.
fixUpgrade to datasetsforecast>=1.0.1: `pip install --upgrade datasetsforecast`.
Upgrade
Version history
1.0.1latest on PyPI · released Feb 24, 2026
Audit
Dependencies
pandasrequiredData manipulation
numpyrequiredNumerical arrays
requestsrequiredData download