Failed to deploy due to no module named numpy

Deploy many times, all fail for the same reason: ModuleNotFoundError: No module named ‘numpy’, but I checked and have installed and include in requirements.txt

Traceback (most recent call last):
File "/var/task/vc__handler__python.py", line 14, in <module>
__vc_spec.loader.exec_module(__vc_module)
File "<frozen importlib._bootstrap_external>", line 999, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/var/task/web.py", line 11, in <module>
import donation_analytics
File "/var/task/donation_analytics.py", line 1, in <module>
import numpy as np
ModuleNotFoundError: No module named 'numpy'
Python process exited with exit status: 1. The logs above can help with debugging the issue.
fastapi==0.115.11

uvicorn==0.34.0

jinja2==3.1.6

twitchAPI

vaderSentiment

openai

python-multipart==0.0.20

aiofiles

python-dotenv

python==3.12.9

supabase

httpx

resend

numpy==1.26.4

pandas==2.2.3

matplotlib==3.10.1

stripe==11.6.0

Hi @imlobo, sorry that you’re facing this issue. Can you share which version of python are you using locally?

If you need more help, please share your public repo or a minimal reproducible example. That will let us all work together from the same code to figure out what’s going wrong.

1 Like

I am using python 3.12.9

Hi @imlobo, I see. Can you try following these two tips from our docs:

@anshumanb is the message above for me or another Vercel user?

1 Like

Oh sorry @imlobo. I think I tagged them by mistake.