deepinsight / deepinsight/insightface
pip install scrfd/requirements.txt Failed
- Dominant language
- Python
- Stars
- 29.7k
- Forks
- 6.1k
- PR merge metrics
- No merged PRs in 30d
Description
```shell
MacBook-Pro:bin kevin$ ./pip install -r /Users/kevin/PycharmProjects/insightface/insightface/detection/scrfd/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: cython in /Users/kevin/PycharmProjects/insightface/insightface/venv/lib/python3.12/site-packages (from -r /Users/kevin/PycharmProjects/insightface/insightface/detection/scrfd/requirements/build.txt (line 2)) (0.29.33)
Requirement already satisfied: numpy in /Users/kevin/PycharmProjects/insightface/insightface/venv/lib/python3.12/site-packages (from -r /Users/kevin/PycharmProjects/insightface/insightface/detection/scrfd/requirements/build.txt (line 3)) (2.1.3)
Collecting albumentations>=0.3.2 (from -r /Users/kevin/PycharmProjects/insightface/insightface/detection/scrfd/requirements/optional.txt (line 1))
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b0/e5/466001d1f1567932d5ccd499287e31508f405d113fe97f961312d9a64597/albumentations-1.4.21-py3-none-any.whl (227 kB)
Collecting cityscapesscripts (from -r /Users/kevin/PycharmProjects/insightface/insightface/detection/scrfd/requirements/optional.txt (line 2))
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/20/5b/35876d039b50e75db470de097c2f0af78805be08b9120d3989c6e1905bf3/cityscapesScripts-2.2.4-py3-none-any.whl (473 kB)
Collecting imagecorruptions (from -r /Users/kevin/PycharmProjects/insightface/insightface/detection/scrfd/requirements/optional.txt (line 3))
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/3e/40/ff4a79ad7ab6463fe2fde7912b71084a6606e33676078a50b40a3377112b/imagecorruptions-1.1.2-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 12.8 MB/s eta 0:00:00
Collecting mmlvis (from -r /Users/kevin/PycharmProjects/insightface/insightface/detection/scrfd/requirements/optional.txt (line 4))
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/09/f3/79cab651db7262b356fa5ab2859af6039d6c8cb0fdf577a04ae1bd99bd2d/mmlvis-10.5.3-py3-none-any.whl (13 kB)
Requirement already satisfied: matplotlib in /Users/kevin/PycharmProjects/insightface/insightface/venv/lib/python3.12/site-packages (from -r /Users/kevin/PycharmProjects/insightface/insightface/detection/scrfd/requirements/runtime.txt (line 1)) (3.9.2)
Collecting mmpycocotools (from -r /Users/kevin/PycharmProjects/insightface/insightface/detection/scrfd/requirements/runtime.txt (line 2))
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/99/51/1bc1d79f296347eeb2d1a2e0606885ab1e4682833bf275fd39c189952e26/mmpycocotools-12.0.3.tar.gz (23 kB)
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
╰─> [20 lines of output]
Traceback (most recent call last):
File "/Users/kevin/PycharmProjects/insightface/insightface/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Users/kevin/PycharmProjects/insightface/insightface/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kevin/PycharmProjects/insightface/insightface/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/7n/5y1fqbs55812lqrcc3d5g28h0000gn/T/pip-build-env-bxcj0kbx/overlay/lib/python3.12/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/7n/5y1fqbs55812lqrcc3d5g28h0000gn/T/pip-build-env-bxcj0kbx/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
File "/private/var/folders/7n/5y1fqbs55812lqrcc3d5g28h0000gn/T/pip-build-env-bxcj0kbx/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
File "/private/var/folders/7n/5y1fqbs55812lqrcc3d5g28h0000gn/T/pip-build-env-bxcj0kbx/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "", line 1, in
ModuleNotFoundError: No module named 'numpy'
[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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with detection/scrfd/requirements/runtime.txt and the reported pip command, then inspect the mmpycocotools build failure showing that numpy is missing from the isolated build environment. Reproduce the installation under the reported Python 3.12 setup; done means the SCRFD requirements install completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100