Skip to content

Commit 1c557d3

Browse files
apivovarovfacebook-github-bot
authored andcommitted
Add ARCHFLAGS to macOS installation command
Summary: This PR solves the installation error `Unsupported architecture` on macOS. Related Issues: #2288 #2285 Pull Request resolved: #2556 Reviewed By: theschnitz Differential Revision: D26122308 Pulled By: ppwwyyxx fbshipit-source-id: 5f8b0615f965ba399f09eaefbbe2f4ff67b04d16
1 parent 6d25060 commit 1c557d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ git clone https://github.com/facebookresearch/detectron2.git
2020
python -m pip install -e detectron2
2121
2222
# Or if you are on macOS
23-
CC=clang CXX=clang++ python -m pip install ......
23+
CC=clang CXX=clang++ ARCHFLAGS="-arch x86_64" python -m pip install ......
2424
```
2525

2626
To __rebuild__ detectron2 that's built from a local clone, use `rm -rf build/ **/*.so` to clean the

0 commit comments

Comments
 (0)