Error installing Numba on OS X

天涯浪子 提交于 2019-11-30 08:56:36

Here's what worked for me (with Homebrew Python on OS X 10.11.4):

brew install homebrew/versions/llvm37 --with-rtti
git clone https://github.com/numba/llvmlite
cd llvmlite
LLVM_CONFIG=/usr/local/Cellar/llvm37/3.7.1/bin/llvm-config-3.7 python setup.py install
LLVM_CONFIG=/usr/local/Cellar/llvm37/3.7.1/bin/llvm-config-3.7 pip install numba
rm -rf llvmlite

Or you can use homebrew:

brew install homebrew/python/numba

The easiest way is to install miniconda than do:

conda install numba

Works perfectly on Mac (and other platforms).

I would recommend to create a new environment first:

conda create -n my_numba_env

activate it:

source activate my_numba_env

and install numba:

conda install numba
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!