examples
examples copied to clipboard
Next.js + Flask example Deploy failed
I've tried to deploy this example https://vercel.com/templates/next.js/nextjs-flask-starter
but during the deployment the following error is shown:
Error: Command failed: pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt
And the deploy fails
I had the same error and solved it by
- pip install setuptools
- changing the numpy version to 1.26.4 in requirements.txt.
I don't think numpy is used at all at this point, so better to clean it out. The path of:
pnpm create next-app -e python/nextjs-flask- [edit out numpy entry in
requirements.txt] - commit to main
- push to github
- connect vercel to repo
- deploy via Vercel UI
Does seem to work fine.
Thanks for that pointer @peterdresslar, removing the numpy dependency solved it for me too.
Sure! But @sup deserves the credit for their #947 that correctly fixed the issue a few weeks ago