Getting python Numba working on Ubuntu 14.10 or Fedora 21 with python 2.7

前端 未结 10 1931
甜味超标
甜味超标 2020-12-15 04:07

Recently, I have had a frustrating time to get python Numba working on Ubuntu or Fedora Linux. The main problem has been with the compilation of llvmlite. What do I need to

10条回答
  •  清歌不尽
    2020-12-15 04:43

    Initially I didn't get it working with the comments here and then I found out: 1. meanwhile llvm 3.6 instead of 3.5 is needed and 2. for me the LLVM_CONFIG env variable doesn't work. So I installed numba like this:

    sudo apt-get install zlib1g zlib1g-dev libedit-dev llvm-3.6 llvm-3.6-dev llvm-3.6-runtime llvm-3.6-tools
    sudo pip install enum34 funcsigs
    sudo mv /usr/bin/llvm-config /usr/bin/llvm-config_bak
    sudo ln -s /usr/bin/llvm-config-3.6 /usr/bin/llvm-config
    sudo pip install llvmlite
    sudo pip install numba
    sudo mv /usr/bin/llvm-config_bak /usr/bin/llvm-config
    

    (Tried on Ubuntu 14.04.)

提交回复
热议问题