ERROR: Failed building wheel for llvmlite python 3.8.5
See original GitHub issueHello,
Please I am trying to install numba within my docker container, which uses alpine 3.10 as base image. I get the following errors below:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-175q8bnc/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-175q8bnc/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-io3m27qx
cwd: /tmp/pip-install-175q8bnc/llvmlite/
Complete output (26 lines):
running bdist_wheel
/usr/bin/python3 /tmp/pip-install-175q8bnc/llvmlite/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/tmp/pip-install-175q8bnc/llvmlite/ffi/build.py", line 105, in main_posix
out = subprocess.check_output([llvm_config, '--version'])
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-install-175q8bnc/llvmlite/ffi/build.py", line 191, in <module>
main()
File "/tmp/pip-install-175q8bnc/llvmlite/ffi/build.py", line 181, in main
main_posix('linux', '.so')
File "/tmp/pip-install-175q8bnc/llvmlite/ffi/build.py", line 107, in main_posix
raise RuntimeError("%s failed executing, please point LLVM_CONFIG "
RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/usr/bin/python3' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Successfully built numba
Failed to build llvmlite
DEPRECATION: Could not build wheels for llvmlite which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Installing collected packages: llvmlite, numba
Running setup.py install for llvmlite ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-175q8bnc/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-175q8bnc/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-uvl27wez/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.8/llvmlite
cwd: /tmp/pip-install-175q8bnc/llvmlite/
Complete output (29 lines):
running install
running build
got version from file /tmp/pip-install-175q8bnc/llvmlite/llvmlite/_version.py {'version': '0.34.0', 'full': 'c5889c9e98c6b19d5d85ebdd982d64a03931f8e2'}
running build_ext
/usr/bin/python3 /tmp/pip-install-175q8bnc/llvmlite/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/tmp/pip-install-175q8bnc/llvmlite/ffi/build.py", line 105, in main_posix
out = subprocess.check_output([llvm_config, '--version'])
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-install-175q8bnc/llvmlite/ffi/build.py", line 191, in <module>
main()
File "/tmp/pip-install-175q8bnc/llvmlite/ffi/build.py", line 181, in main
main_posix('linux', '.so')
File "/tmp/pip-install-175q8bnc/llvmlite/ffi/build.py", line 107, in main_posix
raise RuntimeError("%s failed executing, please point LLVM_CONFIG "
RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/usr/bin/python3' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-175q8bnc/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-175q8bnc/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-uvl27wez/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.8/llvmlite Check the logs for full command output.
Any help will be greatly appreciated please.
Regards
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
llvmlite failed to install. Error building llvmlite
enter code here Error code: ERROR: Failed building wheel for llvmlite Running setup.py clean for llvmlite Failed to build llvmlite Installing ...
Read more >llvmlite
A Lightweight LLVM Python Binding for Writing JIT Compilers ... LLVM's IR parser which provides better error messages than step-by-step IR building through ......
Read more >Python安装LLVMLite报错及解决方案
pip install llvmlite 报错: Building wheels for collected packages: llvmlite Building wheel for llvmlite (setup.py) ... error ERROR: Command ...
Read more >Numba 0.55.0 RC1 - Announcements
For Python 3.10, you will need to get the numpy package from the numba channel ... ERROR: Failed building wheel for numba Running...
Read more >uninstall llvmlite - You.com | The AI Search Engine ...
Error building llvmlite ... If it still does not wortk try installing llvmlite from wheel by ... ERROR: Cannot uninstall 'llvmlite' in Python...
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

@braxtonmckee thanks for reporting this. I ran the Dockerfile locally to obtain the
pipversion number and received this:If you make the following changes to your Dockerfile, the install will likely work:
Closing this as the original issue seems to be resolved (manylinux2010 wheels not installable on Alpine Linux). @Odianosen25 if you have some help building yourself using the directions above, it would probably be best to start a thread on the Discourse first: https://numba.discourse.group/ - many thanks!