question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error installing llvmlite 0.34.0: FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config': 'llvm-config'

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Reactions:19
  • Comments:35 (16 by maintainers)

github_iconTop GitHub Comments

36reactions
esccommented, Aug 17, 2020

@LePoulpeOrange thanks for following up, it does indeed appear as though pip is unable to find the correct binary wheel from PyPi. Looking at the pip release notes for 19.0:

https://pip.pypa.io/en/stable/news/#id315

Implement manylinux2010 platform tag support. manylinux2010 is the successor to manylinux1. It allows carefully compiled > binary wheels to be installed on compatible Linux platforms. (#5008)

It appears that manylinux2010 support may not be available for the version of pip (18.1) that you are reporting. Would it be possible to upgrade the version of pip and try again?

13reactions
wenhaomaocommented, Dec 2, 2020

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-dev

Then, relink ‘llvm-config’ sudo ln -s /usr/bin/llvm-config-8 /usr/bin/llvm-config

Finally, use pip install numba pip install numba --user

and, succeed.

Please check your version of ‘llvm-config’ llvm-config --version 8.0.0 (this is mine)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found