Error deploying my Python project to Vercel

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.

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?

Yes, but checking the total of my dependencies it should give me around 180MB