How to specify LLVM_CONFIG environment variable in path for llvm-config

I am trying to install numba on OS X Mountain Lion. I tried the pip install method but didn't work, so I downloaded zip files from the GIT repositories. When I tried to install numba, I realized that I need LLVM first.

I downloaded and unpacked LLVM in the Download folder. README instructions: "If your LLVM is installed in a non-standard location, first specify the LLVM_CONFIG environment LLVM_CONFIG in the path to the corresponding llvm-config executable."; RunTimeError compatible message that I get when I run the python setup.py install command.

My problem is that I don’t understand what to do so that the LLVM_CONFIG environment variable LLVM_CONFIG to the corresponding llvm-config executable.

Any help? Thanks

+6
source share
2 answers

Actual location indicated by brew. For me it was:

 ==> Caveats LLVM executables are installed in /usr/local/opt/llvm/bin. Extra tools are installed in /usr/local/opt/llvm/share/llvm. 

Then for example:

 LLVM_CONFIG=/usr/local/opt/llvm/bin/llvm-config pip install numba 
+5
source

Well, I first needed to install llvm. My problem was that I installed LLVMLITE not LLVM.

So brew install llvm and then looking for llvm-config in the Cellar directory solved my problem.

+2
source

Source: https://habr.com/ru/post/983771/


All Articles