我無法在OS X系統上安裝Numba(通過pip)。在OS X上安裝Numba時出錯
我使用
- 的Python:2.7.11(自制)
- 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
- 鏘:7.3構建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!),並懷疑是否有一些簡單的修復方法,我錯過了。
您是否嘗試過[用'--egg'選項](http://stackoverflow.com/questions/14296531/what-does-error-option - 單版本外部管理 - 不承認-IND)? – alecxe
@alecxe:同樣的錯誤。並且沒有理由應該是最新的setuptools的問題,如果它? – orome
你有沒有試用conda?它通常比較簡單。 –