Getting python Numba working on Ubuntu 14.10 or Fedora 21 with python 2.7
The versions I got working at the end were numba-0.17.0 (also 0.18.2) and llvmlite-0.2.2 (also 0.4.0). Here are the relevant dependencies and configuration options on Ubuntu and Fedora.
For Ubuntu 14.04 *Trusty)
sudo apt-get install zlib1g zlib1g-dev libedit libedit-dev llvm-3.8 llvm-3.8-dev llvm-devsudo pip install enum34 funcsigsLLVM_CONFIG=/usr/bin/llvm-config-3.8 pip install llvmlite --userLLVM_CONFIG=/usr/bin/llvm-config-3.8 pip install numba --user
For Ubuntu 14.10
sudo apt-get install zlib1g zlib1g-dev libedit libedit-dev llvm-3.5 llvm-3.5-dev llvm-devpip install enum34 funcsigsLLVM_CONFIG=/usr/bin/llvm-config-3.5 pip install llvmliteLLVM_CONFIG=/usr/bin/llvm-config-3.5 pip install numba
For Ubuntu 15.04
sudo apt-get install zlib1g zlib1g-dev libedit2 libedit-dev llvm-3.6 llvm-3.6-dev llvm-devpip install enum34 funcsigsLLVM_CONFIG=/usr/bin/llvm-config-3.6 pip install llvmliteLLVM_CONFIG=/usr/bin/llvm-config-3.6 pip install numba
For Fedora 21
yum install zlib zlib-devel libstdc++-devel libstdc++ libstdc++-static llvm-3.5.0 llvm-devel-3.5.0 libedit libedit-develpip install enum34 funcsigsLLVM_CONFIG=/usr/bin/llvm-config pip install llvmliteLLVM_CONFIG=/usr/bin/llvm-config pip install numba
Note: this was originally posted by the OP in the question—moved here to keep this fit for SO.
For ubuntu 15.10
fisrt check that pip has the correct version:
pip install --upgrade pippip install --upgrade wheel
pip >= 8.1
$ pip --versionpip 8.1.1 from$ wheel versionwheel 0.29.0
apt-get install llvm stuff:
sudo apt-get install zlib1g zlib1g-dev libedit2 libedit-devsudo apt-get install llvm-3.7 llvm-3.7-dev llvm-dev
and then with pip (warning llvmlite work only with llvm 3.7):
pip install enum34 funcsigsLLVM_CONFIG=/usr/bin/llvm-config-3.7 pip install llvmliteLLVM_CONFIG=/usr/bin/llvm-config-3.7 pip install numba
Ubuntu 15.10 using Python 3.4.3+
llvmlite version 0.9 or newer (I installed 0.10)
As stated in llvmlite's GitHub Page:
As of version 0.9, llvmlite requires LLVM 3.7. It does not support earlier or later versions of LLVM.
My solution, similar to the ones in other answers (but regarding python3):
To meet the dependencies: (like libedit
and compression libraries)
sudo apt-get install zlib1g zlib1g-dev libedit2 libedit-devsudo pip3 install enum34 funcsigs
llvm-3.7 (Other answers included llvm package, which nowadays installs version 3.6, not working)
sudo apt-get install llvm-3.7 llvm-3.7-dev llvm-3.7-runtime llvm-3.7-tools
Trying to install llvmlite from pip:
sudo pip3 install llvmlite
(If it works, skip this) If it doesn't work, like in my case, build the last master branch from their repository:
git clone https://github.com/numba/llvmlitecd llvmlite/sudo ch -c "LLVM_CONFIG=/usr/bin/config-3.7 python3 setup.py buildsudo sh -c "LLVM_CONFIG=/usr/bin/llvm-config-3.7 python3 setup.py install"
Finally, install numba:
sudo pip3 install numba