从以下网址下载detectron2
https://github.com/facebookresearch/detectron2
打开终端切换到detectron2根目录下,我是在base环境下
CC=clang CXX=clang++ ARCHFLAGS="-arch x86_64" python -m pip install -e .
安装成功:
可以在写个python程序,能import就成功:
import detectron2
print("Version:", detectron2.__version__)