[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live) [Help](/c/help/9) # Error deploying my Python project to Vercel 126 views · 0 likes · 4 posts David Mp18 (@david-mp18) · 2024-12-27 I have a Python Flask API which requires the following dependencies: ``` Flask==2.1.2 flask-cors Peewee==3.15.2 python-dotenv==0.21.0 Werkzeug==2.2.2 marshmallow pandas numpy pymysql statsmodels ``` When I try to deploy it to Vercel, I get this message: Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. My project is only 81.6 KB. The error only appears when I add the** `statsmodels` **dependency to the requirements file. Anshuman Bhardwaj (@anshumanb) · 2025-01-02 Hi @david-mp18, welcome to the Vercel Community! I see that the issue is related to the bundle size of your application. Although your project code maybe small but after installing the dependencies it might be exceeding the 250 MB limit. Can you please confirm this? David Mp18 (@david-mp18) · 2025-01-02 Yes, but checking the total of my dependencies it should give me around 180MB Pauline P. Narvas (@pawlean) · 2026-02-25 Good news — Vercel has increased the Python Functions bundle size limit to **500MB unzipped** (up from 250MB). `statsmodels` is one of those packages that's deceptively large once all its dependencies are unpacked. With the new limit, your Flask project should deploy without any changes to your `requirements.txt`. Give it a redeploy and let us know! Reference: https://vercel.com/changelog/python-vercel-functions-bundle-size-limit-increased-to-500mb