Код: Выделить всё
> python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
[snip]
ModuleNotFoundError: No module named 'torch'
[end of output]
[/snip]
Код: Выделить всё
CC=clang CXX=clang++ ARCHFLAGS="-arch x86_64" pip3 install 'git+https://github.com/facebookresearch/[email protected]#egg=detectron2'
[same output]
- У меня установлены torch (2.4.1) и torchvision (0.19.1), версии совпадают.
- Я использую macOS Sequoia 15.1.1
- Я использую Python 3.10.14 и pip 24.2
Подробнее здесь: https://stackoverflow.com/questions/792 ... -installed