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

前端 未结 10 1930
甜味超标
甜味超标 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 05:04

    For ubuntu 15.10

    fisrt check that pip has the correct version:

    pip install --upgrade pip
    pip install --upgrade wheel
    

    pip >= 8.1

    $ pip --version
    pip 8.1.1 from
    $ wheel version
    wheel 0.29.0
    

    apt-get install llvm stuff:

    sudo apt-get install zlib1g zlib1g-dev libedit2 libedit-dev
    sudo 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 funcsigs
    LLVM_CONFIG=/usr/bin/llvm-config-3.7 pip install llvmlite
    LLVM_CONFIG=/usr/bin/llvm-config-3.7 pip install numba
    

提交回复
热议问题