Skip to content

Commit

Permalink
update pip install instructions for macOS to use homebrew llvm
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmin committed Jan 19, 2024
1 parent 32c27d7 commit ec9962d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion resource/doc/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ brew install python3
Install the remaining dependencies:

```bash
brew install nasm doxygen
brew install nasm doxygen llvm
```

Note that `brew` requires no `sudo`.
Expand Down Expand Up @@ -76,6 +76,13 @@ Install the rest of the required Python packages:
pip3 install -r python/requirements.txt
```

On macOS it's important to use the LLVM from homebrew as the macOS clang does not include support for OpenMP, which is needed for libsvm-official

``` shell script
LLVM_CONFIG=$HOMEBREW_PREFIX/opt/llvm/bin/llvm-config pip install -r ./python/requirements.txt
```


## Testing

Run unittests and make sure they all pass:
Expand Down

0 comments on commit ec9962d

Please sign in to comment.