fem*_*iir 9 python macos homebrew llvm apple-m1
我已尽一切可能安装 eo-learn 但它无法使用 Conda 无法正常工作我必须使用 pip 使其工作但在尝试安装 numba 时遇到了困难
采取的步骤
brew install llvm
export LLVM_CONFIG=/opt/homebrew/opt/llvm/bin/llvm-config
LLVM_CONFIG=/opt/homebrew/opt/llvm/bin/llvm-config pip install numba
LLVM_CONFIG=/opt/homebrew/opt/llvm/bin/llvm-config pip install llvmlite which is the major dependency breaking for now
brew link llvm
Warning: Refusing to link macOS provided/shadowed software: llvm
If you need to have llvm first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc
For compilers to find llvm you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
I have added the flags
brew link -force llvm
Warning: Refusing to link macOS provided/shadowed software: llvm
If you need to have llvm first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc
For compilers to find llvm you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
Run Code Online (Sandbox Code Playgroud)
我已经做了我所知道的一切,请帮助我
有人可以告诉我如何让安装程序识别它吗
Dhi*_*aTN 17
我可以通过以下步骤在我的 m1 上安装 llvmlite:
arch -arm64 brew install llvm@11
LLVM_CONFIG="/opt/homebrew/Cellar/llvm@11/11.1.0_4/bin/llvm-config" arch -arm64 pip install llvmlite
Run Code Online (Sandbox Code Playgroud)
重要的是:
arm64。**/11.1.0_4/)您可能有更新的版本,甚至在完全不同的路径中。小智 3
查看此链接。https://embeddedartistry.com/blog/2017/02/24/installing-llvm-clang-on-osx/
将 Homebrew llvm/clang 添加到路径对我有用。
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
16962 次 |
| 最近记录: |