policy
size_limit_error
ai_generated
true
HTTPError: 400 Bad Request: File too large
ID: policy/pypi-upload-size
78%Fix Rate
80%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| any | active | — | — | — |
Root Cause
PyPI has a default 60MB per-file upload limit (can request increase).
genericWorkarounds
-
85% success Request a file size limit increase from PyPI
Email [email protected] with project name and justification
-
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:
-
Split the wheel into multiple files
90% fail
pip expects one wheel file per distribution.
-
Compress the wheel with higher compression
75% fail
Wheels are already zip files; recompression has minimal effect.