what to deal with?
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
yang@Mac facial_expression_recognition-main-pyqt界面-0202 % /usr/bin/python3 /Users/yang/Desktop/市面上的系统/0202系统实 现/facial_expression_recognition-main-pyqt界面-0202/predict-0211.py
Traceback (most recent call last):
File "/Users/yang/Desktop/市面上的系统/0202系统实现/facial_expression_recognition-main-pyqt界面-0202/predict-0211.py", line 3, in
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. yang@Mac facial_expression_recognition-main-pyqt界面-0202 % pip install dlib opencv-python Looking in indexes: https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple Collecting dlib Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/3c/07/a2693a94ac678c442c4cfe269d24f63053b14410ef2d09957a762eeb4b8e/dlib-19.24.6.tar.gz (3.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 12.6 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement already satisfied: opencv-python in /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages (4.10.0.84) Requirement already satisfied: numpy>=1.21.2 in /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages (from opencv-python) (2.2.0) Building wheels for collected packages: dlib Building wheel for dlib (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [47 lines of output] /private/var/folders/fr/s79jnfh96wg7t2j3msynx9_w0000gn/T/pip-install-abr8r9iu/dlib_443db802145a4c1ba8b7e926ce7429dd/setup.py:234: SyntaxWarning: invalid escape sequence '(' major = re.findall("set(CPACK_PACKAGE_VERSION_MAJOR."(.)"", open(cmake_file).read())[0] /private/var/folders/fr/s79jnfh96wg7t2j3msynx9_w0000gn/T/pip-install-abr8r9iu/dlib_443db802145a4c1ba8b7e926ce7429dd/setup.py:235: SyntaxWarning: invalid escape sequence '(' minor = re.findall("set(CPACK_PACKAGE_VERSION_MINOR."(.)"", open(cmake_file).read())[0] /private/var/folders/fr/s79jnfh96wg7t2j3msynx9_w0000gn/T/pip-install-abr8r9iu/dlib_443db802145a4c1ba8b7e926ce7429dd/setup.py:236: SyntaxWarning: invalid escape sequence '(' patch = re.findall("set(CPACK_PACKAGE_VERSION_PATCH."(.)"", open(cmake_file).read())[0] running bdist_wheel running build running build_ext
Downgrading my python version from 3.13 to 3.11 helped me with this issue.