Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RuntimeError: <path> failed executing, please point LLVM_CONFIG to the path for llvm-config

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/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?

like image 802
Stefan Falk Avatar asked Apr 28 '20 07:04

Stefan Falk


People also ask

Where is LLVM-config located?

The llvm-config executable is located in bin\Release or bin\Debug , reflecting the build version.

What is LLVM-config?

DESCRIPTION. llvm-config makes it easier to build applications that use LLVM. It can print the compiler flags, linker flags and object libraries needed to link against LLVM.

Where is LLVM on Ubuntu?

LLVM toolset is available in the official package repository of Ubuntu 22.04 LTS. So, you can easily install it with the APT package manager.


1 Answers

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)

like image 170
Pipper Tetsing Avatar answered Sep 20 '22 03:09

Pipper Tetsing