Trying to install llvmlite
via pip
by running
pip install llvmlite
constantly gives me this error:
RuntimeError: <path> failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/Users/sfalk/miniconda3/envs/itranslate-asr-service/bin/python' failed with exit status 1
----------------------------------------
Now, I am on Python 3.5
$ python --version
Python 3.5.6 :: Anaconda, Inc.
And just running pip install llvmlite
will give me this:
RuntimeError: Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got '10.0.0'. Be sure to set LLVM_CONFIG to the right executable path.
I installed LLVM 8 via brew
brew install llvm@8
Setting LLVM_CONFIG
to either does not work.
/usr/local/opt/llvm@8/bin
(were I assumed llvm-config
to be), or /usr/local/opt/llvm@8/Toolchains/LLVM8.0.1.xctoolchain/usr/bin
(where I actually found llvm-config
to be) And I keep getting some version of:
RuntimeError: /usr/local/opt/llvm@8/Toolchains/LLVM8.0.1.xctoolchain/usr/bin failed executing, please point LLVM_CONFIG to the path for llvm-config
What am I missing here?
And for those reviewing the post in search for a solution to installing numba, the version released on June 24, 2020 works: pip install numba==0.50.1
You will have to install the required llvm package using and link the executable config
sudo apt install llvm-**X**
and then
sudo pip3 install llvmlite
cd /usr/bin
sudo ln -s llvm-config-**X** llvm-config
This fixed the llvm issue of installing librosa on my raspberry pi (aarch64)
Looks like there is an issue with latest version of llvmlite. Please consider using 0.31.0 version.
>>pip install llvmlite==0.31.0
Collecting llvmlite==0.31.0
Downloading
https://files.pythonhosted.org/packages/10/31/aa315fbc2e0b7777b95ce166b7c988f53e4cdd4c33d06eea24f395539eb4/llvmlite-0.31.0-cp35-cp35m-macosx_10_9_x86_64.whl (15.9MB)
100% |████████████████████████████████| 15.9MB 1.1MB/s
Installing collected packages: llvmlite
Successfully installed llvmlite-0.31.0
I was facing the same issue this didnt work
You will have to install the required llvm package using and link the executable config
sudo apt install llvm- X
and then
sudo pip3 install llvmlite cd /usr/bin sudo ln -s llvm-config- X llvm-config
didnt work for me.. but i did notice we had the same output error
RuntimeError: <path> failed executing, please point LLVM_CONFIG to the path for llvm-config
so.. logic kicked in.. why not point the LLVM_CONFIG to the proper llvm-config
simple fix
export LLVM_CONFIG=/usr/bin/llvm-config-10
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.