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.

Building llvmlite requires LLVM 3.9.x

See original GitHub issue

~/llvmlite   master  LLVM_CONFIG=/usr/local/Cellar/llvm@3.8/3.8.1/bin/llvm-config-3.8 python setup.py install

I get this on mac and ubuntu (both have llvm-3.8 installed, llvm-3.9 is not available via apt neither via brew)

/usr/local/lib/python2.7/site-packages/setuptools/dist.py:333: UserWarning: Normalizing '0.16.0.dev+17.ge2b69ed' to '0.16.0.dev0+17.ge2b69ed'
  normalized_version,
running install
running build
got version from VCS {'version': '0.16.0.dev+17.ge2b69ed', 'full': 'e2b69edc08f8f4245aac56de7cbf41b7850bbe95'}
running build_ext
/usr/local/opt/python/bin/python2.7 /Users/mac/llvmlite/ffi/build.py
LLVM version... 3.8.1

Traceback (most recent call last):
  File "/Users/mac/llvmlite/ffi/build.py", line 152, in <module>
    main()
  File "/Users/mac/llvmlite/ffi/build.py", line 146, in main
    main_posix('osx', '.dylib')
  File "/Users/mac/llvmlite/ffi/build.py", line 119, in main_posix
    raise RuntimeError(msg)
RuntimeError: Building llvmlite requires LLVM 3.9.x. Be sure to set LLVM_CONFIG to the right executable path.
Read the documentation at http://llvmlite.pydata.org/ for more information about building llvmlite.

error: command '/usr/local/opt/python/bin/python2.7' failed with exit status 1```

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

21reactions
sklamcommented, Feb 20, 2017

If you don’t need to build llvmlite/llvm manually, you can get pre-built binaries through conda. We are also testing wheel packages for linux for the current llvmlite release. We have it for py2.7 and py3.5 with pip install -i https://pypi.anaconda.org/sklam/simple llvmlite

0reactions
liuhuiCNNcommented, Oct 27, 2020

LLVM_CONFIG=/usr/local/Cellar/llvm@3.9.0/bin/llvm-config pip install llvmlite

it works for me, thanks a lot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

<path> failed executing, please point LLVM_CONFIG to the ...
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.
Read more >
llvmlite - PyPI
A Lightweight LLVM Python Binding for Writing JIT Compilers. llvmlite is a project originally tailored for Numba's needs, using the following approach:.
Read more >
llvmlite Documentation - Read the Docs
A lightweight LLVM-Python binding for writing JIT compilers llvmlite provides a Python binding to LLVM for use in Numba.
Read more >
llvmlite on Fedora 33 - Google Groups
I installed Fedora 33, which uses python 3.9, so I had to reinstall llvmlite ... RuntimeError: Building llvmlite requires LLVM 10.0.x or 9.0.x,...
Read more >
Installation — llvmlite 0.40.0dev0-48-ged0f625-dirty ...
The parts of LLVM required by llvmlite are statically linked at build time. As a result, installing llvmlite from a binary package from...
Read more >

github_iconTop Related Medium Post

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