Error failed building wheel for llvmlite

Hello, 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...

Hello,

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('"'"'rn'"'"', '"'"'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('"'"'rn'"'"', '"'"'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('"'"'rn'"'"', '"'"'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

can’t install llvmlite package. After trying «pip3 install numba —user»

Building wheels for collected packages: llvmlite
Building wheel for llvmlite (setup.py) … 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-8mckg1dx/llvmlite/setup.py'»‘»‘; __file__='»‘»‘/tmp/pip-install-8mckg1dx/llvmlite/setup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(__file__);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, __file__, ‘»‘»‘exec'»‘»‘))’ bdist_wheel -d /tmp/pip-wheel-161etk5h
cwd: /tmp/pip-install-8mckg1dx/llvmlite/
Complete output (11 lines):
running bdist_wheel
/usr/bin/python3 /tmp/pip-install-8mckg1dx/llvmlite/ffi/build.py
LLVM version… Traceback (most recent call last):
File «/tmp/pip-install-8mckg1dx/llvmlite/ffi/build.py», line 220, in <module>
main()
File «/tmp/pip-install-8mckg1dx/llvmlite/ffi/build.py», line 210, in main
main_posix(‘linux’, ‘.so’)
File «/tmp/pip-install-8mckg1dx/llvmlite/ffi/build.py», line 134, in main_posix
raise RuntimeError(msg) from None
RuntimeError: Could not find a `llvm-config` binary. There are a number of reasons this could occur, please see: https://llvmlite.readthedocs.io/en/late … #using-pip for help.
error: command ‘/usr/bin/python3’ failed with exit status 1
—————————————-
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
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-8mckg1dx/llvmlite/setup.py'»‘»‘; __file__='»‘»‘/tmp/pip-install-8mckg1dx/llvmlite/setup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(__file__);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, __file__, ‘»‘»‘exec'»‘»‘))’ install —record /tmp/pip-record-_8no72jh/install-record.txt —single-version-externally-managed —user —prefix= —compile —install-headers /home/pi/.local/include/python3.7m/llvmlite
cwd: /tmp/pip-install-8mckg1dx/llvmlite/
Complete output (14 lines):
running install
running build
got version from file /tmp/pip-install-8mckg1dx/llvmlite/llvmlite/_version.py {‘version’: ‘0.36.0’, ‘full’: ‘e6bb8d137d922bec8beeb01a237254778759becd’}
running build_ext
/usr/bin/python3 /tmp/pip-install-8mckg1dx/llvmlite/ffi/build.py
LLVM version… Traceback (most recent call last):
File «/tmp/pip-install-8mckg1dx/llvmlite/ffi/build.py», line 220, in <module>
main()
File «/tmp/pip-install-8mckg1dx/llvmlite/ffi/build.py», line 210, in main
main_posix(‘linux’, ‘.so’)
File «/tmp/pip-install-8mckg1dx/llvmlite/ffi/build.py», line 134, in main_posix
raise RuntimeError(msg) from None
RuntimeError: Could not find a `llvm-config` binary. There are a number of reasons this could occur, please see: https://llvmlite.readthedocs.io/en/late … #using-pip for help.
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-8mckg1dx/llvmlite/setup.py'»‘»‘; __file__='»‘»‘/tmp/pip-install-8mckg1dx/llvmlite/setup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(__file__);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, __file__, ‘»‘»‘exec'»‘»‘))’ install —record /tmp/pip-record-_8no72jh/install-record.txt —single-version-externally-managed —user —prefix= —compile —install-headers /home/pi/.local/include/python3.7m/llvmlite Check the logs for full command output.

(tutorial-env) michael@MS:~ % pip install numba
Collecting numba
  Using cached numba-0.53.1.tar.gz (2.2 MB)
Collecting llvmlite<0.37,>=0.36.0rc1
  Using cached llvmlite-0.36.0.tar.gz (126 kB)
Requirement already satisfied: numpy>=1.15 in ./tutorial-env/lib/python3.9/site-packages (from numba) (1.20.2)
Requirement already satisfied: setuptools in ./tutorial-env/lib/python3.9/site-packages (from numba) (56.0.0)
Building wheels for collected packages: numba, llvmlite
  Building wheel for numba (setup.py) ... done
  Created wheel for numba: filename=numba-0.53.1-cp39-cp39-freebsd_13_0_release_amd64.whl size=2285629 sha256=7a5a68a146c30fe6bee9f25fda4c2c16ac9be92b4dee46951c9495e508dd9970
  Stored in directory: /usr/home/michael/.cache/pip/wheels/86/ae/01/9c7c22acf1131e3a439113c0d2f67bc98caa5183b7a367f528
  Building wheel for llvmlite (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/home/michael/tutorial-env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-b2xnvfbo
       cwd: /tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/
  Complete output (11 lines):
  running bdist_wheel
  /usr/home/michael/tutorial-env/bin/python /tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/ffi/build.py
  LLVM version... Traceback (most recent call last):
    File "/tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/ffi/build.py", line 220, in <module>
      main()
    File "/tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/ffi/build.py", line 212, in main
      main_posix('freebsd', '.so')
    File "/tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/ffi/build.py", line 134, in main_posix
      raise RuntimeError(msg) from None
  RuntimeError: Could not find a `llvm-config` binary. There are a number of reasons this could occur, please see: https://llvmlite.readthedocs.io/en/latest/admin-guide/install.html#using-pip for help.
  error: command '/usr/home/michael/tutorial-env/bin/python' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for llvmlite
  Running setup.py clean for llvmlite
Successfully built numba
Failed to build llvmlite
Installing collected packages: llvmlite, numba
    Running setup.py install for llvmlite ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/home/michael/tutorial-env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-t9nfscca/install-record.txt --single-version-externally-managed --compile --install-headers /usr/home/michael/tutorial-env/include/site/python3.9/llvmlite
         cwd: /tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/
    Complete output (14 lines):
    running install
    running build
    got version from file /tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/llvmlite/_version.py {'version': '0.36.0', 'full': 'e6bb8d137d922bec8beeb01a237254778759becd'}
    running build_ext
    /usr/home/michael/tutorial-env/bin/python /tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/ffi/build.py
    LLVM version... Traceback (most recent call last):
      File "/tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/ffi/build.py", line 220, in <module>
        main()
      File "/tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/ffi/build.py", line 212, in main
        main_posix('freebsd', '.so')
      File "/tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/ffi/build.py", line 134, in main_posix
        raise RuntimeError(msg) from None
    RuntimeError: Could not find a `llvm-config` binary. There are a number of reasons this could occur, please see: https://llvmlite.readthedocs.io/en/latest/admin-guide/install.html#using-pip for help.
    error: command '/usr/home/michael/tutorial-env/bin/python' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/home/michael/tutorial-env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q3inh1z1/llvmlite_225f84bdefcf449bbe2d50134c513eeb/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-t9nfscca/install-record.txt --single-version-externally-managed --compile --install-headers /usr/home/michael/tutorial-env/include/site/python3.9/llvmlite Check the logs for full command output.

Понравилась статья? Поделить с друзьями:
  • Error failed building wheel for fastecdsa
  • Error failed building wheel for cx oracle
  • Error failed building wheel for ciso8601
  • Error failed building wheel for cffi
  • Error failed building wheel for backports zoneinfo