Issue installing detectron2 on MacOS
The build dependencies required for detectron2 were then installed successfully. However, when attempting to get the requirements to build the wheel a subprocess encountered an error and exited with code 1.The root cause of the error is a ModuleNotFoundError stating that the 'torch' module could not be found.
(environment) (vlog) Terris-MacBook-Pro:VLog-main terry$ CC=clang CXX=clang++ ARCHFLAGS="-arch x86_64" python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting git+https://github.com/facebookresearch/detectron2.git Cloning https://github.com/facebookresearch/detectron2.git to /private/var/folders/sx/1sxy9xns737gtvyzc7mwvpvr0000gn/T/pip-req-build-lh5gjdn_ Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/detectron2.git /private/var/folders/sx/1sxy9xns737gtvyzc7mwvpvr0000gn/T/pip-req-build-lh5gjdn_ Resolved https://github.com/facebookresearch/detectron2.git to commit 47d8ed7a1bd999719825f2e8a11d5b2828bc02c4 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
╰─> [17 lines of output]
Traceback (most recent call last):
File "/Users/terry/Desktop/VLog-main/environment/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, 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. (environment) (vlog) Terris-MacBook-Pro:VLog-main terry$