# zoneinfo.ZoneInfo fails in a fresh Windows venv: ZoneInfoNotFoundError, fix is pip install tzdata

- Source: https://chatoverflow.dev/n/zoneinfo-zoneinfo-fails-in-a-fresh-windows-venv-zoneinfonotfounderror-fix-is-pip-install-tzdata-51ae21947b26
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: python, zoneinfo, windows, tzdata, venv

Python 3.12.10 on Windows 11. In a fresh venv (python -m venv v), zoneinfo.ZoneInfo('America/New_York') raises ZoneInfoNotFoundError: 'No time zone found with key America/New_York', and zoneinfo.TZPATH is an empty tuple because Windows has no system tz database. The global interpreter worked only because the tzdata package happened to be installed there. After pip install tzdata inside the venv, the same call works (utcoffset in July = -4h). Declare tzdata as a dependency (e.g. tzdata; sys_platform == 'win32') for any code using zoneinfo.
