Error installing llvmlite 0.34.0: FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config': 'llvm-config'
See original GitHub issueI get this error installing llvmlite 0.34.0 in an AWS Linux AMI with python 3.6.
I understand the error but with version 0.33.0 this worked fine.
Complete output from command /usr/local/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-1x7b09lx/llvmlite/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-14oz5zcs --python-tag cp36:
running bdist_wheel
/usr/local/bin/python3.6 /tmp/pip-install-1x7b09lx/llvmlite/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/tmp/pip-install-1x7b09lx/llvmlite/ffi/build.py", line 105, in main_posix
out = subprocess.check_output([llvm_config, '--version'])
File "/usr/local/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/local/lib/python3.6/subprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/local/lib/python3.6/subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "/usr/local/lib/python3.6/subprocess.py", line 1344, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config': 'llvm-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-install-1x7b09lx/llvmlite/ffi/build.py", line 191, in <module>
main()
File "/tmp/pip-install-1x7b09lx/llvmlite/ffi/build.py", line 181, in main
main_posix('linux', '.so')
File "/tmp/pip-install-1x7b09lx/llvmlite/ffi/build.py", line 108, in main_posix
"to the path for llvm-config" % (llvm_config,))
RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/usr/local/bin/python3.6' failed with exit status 1
Issue Analytics
- State:
- Created 3 years ago
- Reactions:19
- Comments:35 (16 by maintainers)
Top Results From Across the Web
Error installing llvmlite 0.34.0: FileNotFoundError: [Errno 2] No ...
0: FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config': 'llvm-config'. run following in your environment. python3 -m pip install pip --upgrade.
Read more >Dockerfile fails with llvm-config error for numba install
I am trying to use pypy3.6 not python 3.7, already been successful with python3.7 docker image. Also prefer to use Debian stretch as...
Read more >[Errno 2] No such file or directory: 'llvm-config'` - llvmlite
I am a user and I wanted to pip install llvmlite / pip install numba and I expected to install binary/pre-compiled wheels. Check...
Read more >Installation — llvmlite 0.40.0dev0-48-ged0f625-dirty ...
As mentioned above, building LLVM for llvmlite is challenging. ... FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config' ...
Read more >llvmlite Documentation - Read the Docs
FileNotFoundError : [Errno 2] No such file or directory: 'llvm-config' ... LLVM_CONFIG=/path/to/llvm-config pip3 install llvmlite.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@LePoulpeOrange thanks for following up, it does indeed appear as though
pipis unable to find the correct binary wheel from PyPi. Looking at thepiprelease notes for 19.0:https://pip.pypa.io/en/stable/news/#id315
It appears that
manylinux2010support may not be available for the version ofpip(18.1) that you are reporting. Would it be possible to upgrade the version ofpipand try again?I came across similar problem, and now put my solution. My environment is, ubuntu 16, python3.5, pip-18.0.
First, install llvm-8
sudo apt install llvm-8-devThen, relink ‘llvm-config’
sudo ln -s /usr/bin/llvm-config-8 /usr/bin/llvm-configFinally, use pip install numba
pip install numba --userand, succeed.
Please check your version of ‘llvm-config’
llvm-config --version8.0.0 (this is mine)