Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what to deal with? #245

Open
lucky0513123 opened this issue Feb 11, 2025 · 0 comments
Open

what to deal with? #245

lucky0513123 opened this issue Feb 11, 2025 · 0 comments

Comments

@lucky0513123
Copy link

× 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
import torch
ModuleNotFoundError: No module named 'torch'
yang@Mac facial_expression_recognition-main-pyqt界面-0202 % pip install facenet_pytorch
Looking in indexes: https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
Collecting facenet_pytorch
Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/ed/2e/2d56386bc2f834cdc683743903852cf1428b4e5ee119f16cf808b589d3cd/facenet_pytorch-2.6.0-py3-none-any.whl (1.9 MB)
Collecting numpy<2.0.0,>=1.24.0 (from facenet_pytorch)
Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/65/6e/09db70a523a96d25e115e71cc56a6f9031e7b8cd166c1ac8438307c14058/numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting Pillow<10.3.0,>=10.2.0 (from facenet_pytorch)
Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/f8/3e/32cbd0129a28686621434cbf17bb64bf1458bfb838f1f668262fefce145c/pillow-10.2.0.tar.gz (46.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× 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
main()
~~~~^^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/fr/s79jnfh96wg7t2j3msynx9_w0000gn/T/pip-build-env-unee8y1f/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/fr/s79jnfh96wg7t2j3msynx9_w0000gn/T/pip-build-env-unee8y1f/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/private/var/folders/fr/s79jnfh96wg7t2j3msynx9_w0000gn/T/pip-build-env-unee8y1f/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 31, in
File "", line 28, in get_version
KeyError: 'version'
[end of output]

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant