Cant deploy app it fails

[21:25:55.754] Running build in Washington, D.C., USA (East) – iad1
[21:25:55.767] Cloning GitHub - SwastikKaushal1/PartypixAi: A simple and efficient way for guests to upload their photos, generate a sharable link, and easily download all event images after uploading a face photo. (Branch: main, Commit: e9487bc)
[21:25:55.951] Previous build caches not available
[21:25:56.199] Cloning completed: 432.000ms
[21:25:56.523] Running “vercel build”
[21:25:56.867] Vercel CLI 41.6.2
[21:25:56.962] WARN! Due to builds existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: Error List
[21:25:56.982] Installing required dependencies…
[21:26:16.245] Failed to run “pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt”
[21:26:16.248] Error: Command failed: pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt
[21:26:16.248] error: subprocess-exited-with-error
[21:26:16.248]
[21:26:16.249] × Building wheel for dlib (pyproject.toml) did not run successfully.
[21:26:16.249] │ exit code: 1
[21:26:16.249] ╰─> [44 lines of output]
[21:26:16.250] :234: SyntaxWarning: invalid escape sequence ‘(’
[21:26:16.250] :235: SyntaxWarning: invalid escape sequence ‘(’
[21:26:16.250] :236: SyntaxWarning: invalid escape sequence ‘(’
[21:26:16.250] running bdist_wheel
[21:26:16.250] running build
[21:26:16.251] running build_ext
[21:26:16.251]
[21:26:16.251] ================================================================================
[21:26:16.251] ================================================================================
[21:26:16.251] ================================================================================
[21:26:16.251]
[21:26:16.252] CMake is not installed on your system!
[21:26:16.252]
[21:26:16.252] Or it is possible some broken copy of cmake is installed on your system.
[21:26:16.252] It is unfortunately very common for python package managers to include
[21:26:16.252] broken copies of cmake. So if the error above this refers to some file
[21:26:16.252] path to a cmake file inside a python or anaconda or miniconda path then you
[21:26:16.253] should delete that broken copy of cmake from your computer.
[21:26:16.253]
[21:26:16.253] Instead, please get an official copy of cmake from one of these known good
[21:26:16.253] sources of an official cmake:
[21:26:16.253] - cmake.org (this is how windows users should get cmake)
[21:26:16.253] - apt install cmake (for Ubuntu or Debian based systems)
[21:26:16.254] - yum install cmake (for Redhat or CenOS based systems)
[21:26:16.254]
[21:26:16.254] On a linux machine you can run which cmake to see what cmake you are
[21:26:16.254] actually using. If it tells you it’s some cmake from any kind of python
[21:26:16.254] packager delete it and install an official cmake.
[21:26:16.255]
[21:26:16.255] More generally, cmake is not installed if when you open a terminal window
[21:26:16.255] and type
[21:26:16.255] cmake --version
[21:26:16.255] you get an error. So you can use that as a very basic test to see if you
[21:26:16.255] have cmake installed. That is, if cmake --version doesn’t run from the
[21:26:16.256] same terminal window from which you are reading this error message, then
[21:26:16.256] you have not installed cmake. Windows users should take note that they
[21:26:16.256] need to tell the cmake installer to add cmake to their PATH. Since you
[21:26:16.256] can’t run commands that are not in your PATH. This is how the PATH works
[21:26:16.256] on Linux as well, but failing to add cmake to the PATH is a particularly
[21:26:16.257] common problem on windows and rarely a problem on Linux.
[21:26:16.257]
[21:26:16.257] ================================================================================
[21:26:16.257] ================================================================================
[21:26:16.257] ================================================================================
[21:26:16.258] [end of output]
[21:26:16.258]
[21:26:16.258] note: This error originates from a subprocess, and is likely not a problem with pip.
[21:26:16.258] ERROR: Failed building wheel for dlib
[21:26:16.258] ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects
[21:26:16.258]
[21:26:16.258] Collecting flask (from -r /vercel/path0/requirements.txt (line 1))
[21:26:16.259] Downloading flask-3.1.0-py3-none-any.whl.metadata (2.7 kB)
[21:26:16.259] Collecting face_recognition (from -r /vercel/path0/requirements.txt (line 2))
[21:26:16.259] Downloading face_recognition-1.3.0-py2.py3-none-any.whl.metadata (21 kB)
[21:26:16.260] Collecting requests (from -r /vercel/path0/requirements.txt (line 3))
[21:26:16.260] Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
[21:26:16.260] Collecting numpy (from -r /vercel/path0/requirements.txt (line 4))
[21:26:16.260] Downloading numpy-2.2.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (62 kB)
[21:26:16.261] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.0/62.0 kB 11.0 MB/s eta 0:00:00
[21:26:16.263] Collecting pillow (from -r /vercel/path0/requirements.txt (line 5))
[21:26:16.263] Downloading pillow-11.2.1-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (8.9 kB)
[21:26:16.264] Collecting Werkzeug>=3.1 (from flask->-r /vercel/path0/requirements.txt (line 1))
[21:26:16.264] Downloading werkzeug-3.1.3-py3-none-any.whl.metadata (3.7 kB)
[21:26:16.264] Collecting Jinja2>=3.1.2 (from flask->-r /vercel/path0/requirements.txt (line 1))
[21:26:16.264] Downloading jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)
[21:26:16.264] Collecting itsdangerous>=2.2 (from flask->-r /vercel/path0/requirements.txt (line 1))
[21:26:16.265] Downloading itsdangerous-2.2.0-py3-none-any.whl.metadata (1.9 kB)
[21:26:16.270] Collecting click>=8.1.3 (from flask->-r /vercel/path0/requirements.txt (line 1))
[21:26:16.270] Downloading click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
[21:26:16.270] Collecting blinker>=1.9 (from flask->-r /vercel/path0/requirements.txt (line 1))
[21:26:16.270] Downloading blinker-1.9.0-py3-none-any.whl.metadata (1.6 kB)
[21:26:16.270] Collecting face-recognition-models>=0.3.0 (from face_recognition->-r /vercel/path0/requirements.txt (line 2))
[21:26:16.271] Downloading face_recognition_models-0.3.0.tar.gz (100.1 MB)
[21:26:16.271] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.1/100.1 MB 56.0 MB/s eta 0:00:00
[21:26:16.271] Installing build dependencies: started
[21:26:16.271] Installing build dependencies: finished with status ‘done’
[21:26:16.271] Getting requirements to build wheel: started
[21:26:16.272] Getting requirements to build wheel: finished with status ‘done’
[21:26:16.272] Preparing metadata (pyproject.toml): started
[21:26:16.272] Preparing metadata (pyproject.toml): finished with status ‘done’
[21:26:16.272] Collecting dlib>=19.7 (from face_recognition->-r /vercel/path0/requirements.txt (line 2))
[21:26:16.272] Downloading dlib-19.24.8.tar.gz (3.4 MB)
[21:26:16.272] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 236.4 MB/s eta 0:00:00
[21:26:16.272] Installing build dependencies: started
[21:26:16.272] Installing build dependencies: finished with status ‘done’
[21:26:16.272] Getting requirements to build wheel: started
[21:26:16.272] Getting requirements to build wheel: finished with status ‘done’
[21:26:16.273] Preparing metadata (pyproject.toml): started
[21:26:16.273] Preparing metadata (pyproject.toml): finished with status ‘done’
[21:26:16.273] Collecting charset-normalizer<4,>=2 (from requests->-r /vercel/path0/requirements.txt (line 3))
[21:26:16.273] Downloading charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (35 kB)
[21:26:16.273] Collecting idna<4,>=2.5 (from requests->-r /vercel/path0/requirements.txt (line 3))
[21:26:16.273] Downloading idna-3.10-py3-none-any.whl.metadata (10 kB)
[21:26:16.273] Collecting urllib3<3,>=1.21.1 (from requests->-r /vercel/path0/requirements.txt (line 3))
[21:26:16.273] Downloading urllib3-2.4.0-py3-none-any.whl.metadata (6.5 kB)
[21:26:16.273] Collecting certifi>=2017.4.17 (from requests->-r /vercel/path0/requirements.txt (line 3))
[21:26:16.273] Downloading certifi-2025.4.26-py3-none-any.whl.metadata (2.5 kB)
[21:26:16.273] Collecting MarkupSafe>=2.0 (from Jinja2>=3.1.2->flask->-r /vercel/path0/requirements.txt (line 1))
[21:26:16.274] Downloading MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB)
[21:26:16.274] Downloading flask-3.1.0-py3-none-any.whl (102 kB)
[21:26:16.274] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.0/103.0 kB 65.8 MB/s eta 0:00:00
[21:26:16.274] Downloading face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
[21:26:16.274] Downloading requests-2.32.3-py3-none-any.whl (64 kB)
[21:26:16.274] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.9/64.9 kB 43.3 MB/s eta 0:00:00
[21:26:16.274] Downloading numpy-2.2.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.1 MB)
[21:26:16.274] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.1/16.1 MB 218.7 MB/s eta 0:00:00
[21:26:16.274] Downloading pillow-11.2.1-cp312-cp312-manylinux_2_28_x86_64.whl (4.6 MB)
[21:26:16.275] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 MB 198.0 MB/s eta 0:00:00
[21:26:16.275] Downloading blinker-1.9.0-py3-none-any.whl (8.5 kB)
[21:26:16.275] Downloading certifi-2025.4.26-py3-none-any.whl (159 kB)
[21:26:16.275] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 159.6/159.6 kB 89.8 MB/s eta 0:00:00
[21:26:16.275] Downloading charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (145 kB)
[21:26:16.275] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 145.3/145.3 kB 55.1 MB/s eta 0:00:00
[21:26:16.275] Downloading click-8.1.8-py3-none-any.whl (98 kB)
[21:26:16.275] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.2/98.2 kB 69.6 MB/s eta 0:00:00
[21:26:16.275] Downloading idna-3.10-py3-none-any.whl (70 kB)
[21:26:16.276] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 70.4/70.4 kB 51.1 MB/s eta 0:00:00
[21:26:16.276] Downloading itsdangerous-2.2.0-py3-none-any.whl (16 kB)
[21:26:16.276] Downloading jinja2-3.1.6-py3-none-any.whl (134 kB)
[21:26:16.276] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 134.9/134.9 kB 89.2 MB/s eta 0:00:00
[21:26:16.276] Downloading urllib3-2.4.0-py3-none-any.whl (128 kB)
[21:26:16.276] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.7/128.7 kB 85.7 MB/s eta 0:00:00
[21:26:16.276] Downloading werkzeug-3.1.3-py3-none-any.whl (224 kB)
[21:26:16.276] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 224.5/224.5 kB 120.7 MB/s eta 0:00:00
[21:26:16.276] Downloading MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23 kB)
[21:26:16.277] Building wheels for collected packages: dlib, face-recognition-models
[21:26:16.277] Building wheel for dlib (pyproject.toml): started
[21:26:16.277] Building wheel for dlib (pyproject.toml): finished with status ‘error’
[21:26:16.277] Building wheel for face-recognition-models (pyproject.toml): started
[21:26:16.277] Building wheel for face-recognition-models (pyproject.toml): finished with status ‘done’
[21:26:16.277] Created wheel for face-recognition-models: filename=face_recognition_models-0.3.0-py2.py3-none-any.whl size=100566239 sha256=779f52c21354f347f1d80e395a69675a2770a5f3ff76d258af11491f6e8480bd
[21:26:16.277] Stored in directory: /vercel/.cache/pip/wheels/8f/47/c8/f44c5aebb7507f7c8a2c0bd23151d732d0f0bd6884ad4ac635
[21:26:16.278] Successfully built face-recognition-models
[21:26:16.278] Failed to build dlib
[21:26:16.278]
[21:26:16.466]

what should i do

Vercel uses serverless functions which are packaged for AWS Lambda, so you can’t install packages with apt-get like on an Ubuntu server

You’ll need to stick to tools that are available via pip or npm directly