Vercel error deploying Django project, python version error
1
When running the vercel command in Ubuntu terminal:
Error! Command failed: python3.6 /tmp/2de7da56/get-pip.py --user
ERROR: This script does not work on Python 3.6 The minimum supported Python version is 3.7. Please > use https://bootstrap.pypa.io/pip/3.6/get-pip.py instead.
python --version returns 3.8.10.
pip --version returns 22.0.4.
vercel --version returns 24.0.1
requirements.txt just has Django == 4.0.3
What I tried:
Ran the script linked in the error message and added its installation directory to PATH.
Updated pip in default directory to 22.0.4.
Even aliased python3.6 to python at one point.
Tried on both Windows and Ubuntu.
I faced the same error when I recently tried to host my Django rest framework project on vercel. Following the steps in this post Link, I got it to work successfully with python 3.9