python安装numba_python – 在OS X上安装Numba时出错
我無法在我的OS X系統上安裝Numba(通過pip).
我在用著
> Python:2.7.11(Homebrew)
pip:8.1.1
> setuptools:20.6.7
> OS X:10.11.4(x86_64)
> Xcode:7.3
> Xcode CLT:7.3.0.0.1.1457485338
> Clang:7.3 build 703
并已經安裝了先決條件(我認為)
brew install llvm
git clone https://github.com/numba/llvmlite
cd llvmlite
LLVM_CONFIG=/usr/local/opt/llvm/bin/llvm-config python setup.py install
cd ..
rm -rf llvmlite
并試過
brew install llvm
brew link --force llvm # later: brew unlink llvm
cd /usr/local/Cellar/llvm/X.X.X/include/llvm/Config/ # X.X.X = 3.6.2
ln -s llvm-config.h config.h
但是我呢
pip install numba
給
Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Successfully built numba
Failed to build llvmlite
Installing collected packages: llvmlite,numba
Running setup.py install for llvmlite ...
[...]
error: option --single-version-externally-managed not recognized
----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools,tokenize;__file__='/private/var/folders/b6/3rk65h797p7407x7d36sqn9c0000gn/T/pip-build-MY_vtC/llvmlite/setup.py';exec(compile(getattr(tokenize,'open',open)(__file__).read().replace('\r\n','\n'),__file__,'exec'))" install --record /var/folders/b6/3rk65h797p7407x7d36sqn9c0000gn/T/pip-yoGGZY-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/b6/3rk65h797p7407x7d36sqn9c0000gn/T/pip-build-MY_vtC/llvmlite/
我很抱歉如何進行(沒有Conda!),并想知道是否有一些簡單的修復我失蹤了.
總結
以上是生活随笔為你收集整理的python安装numba_python – 在OS X上安装Numba时出错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: javase开发工具包中的什么命令负责运
- 下一篇: python框架django面试问别人什