policy size_limit_error ai_generated true

HTTPError: 400 Bad Request: File too large

ID: policy/pypi-upload-size

Also available as: JSON · Markdown
78%Fix Rate
80%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
any active

Root Cause

PyPI has a default 60MB per-file upload limit (can request increase).

generic

Workarounds

  1. 85% success Request a file size limit increase from PyPI
    Email [email protected] with project name and justification
  2. 82% success Exclude unnecessary data files and ship them separately
    Use package_data excludes and host data on GitHub Releases

Dead Ends

Common approaches that don't work:

  1. Split the wheel into multiple files 90% fail

    pip expects one wheel file per distribution.

  2. Compress the wheel with higher compression 75% fail

    Wheels are already zip files; recompression has minimal effect.