如何将 LLVM_CONFIG 环境变量指向 llvm-config 的路径 [英] How to point LLVM_CONFIG environment variable to the path for llvm-config

查看:122
本文介绍了如何将 LLVM_CONFIG 环境变量指向 llvm-config 的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 OS X Mountain Lion 上安装 numba.我尝试过 pip install 方式但没有用,所以我从 GIT 存储库下载了 zip 文件.在尝试安装 numba 时,我意识到我首先需要 LLVM.

I am trying to install numba on an OS X Mountain Lion. I had tried the pip install way but didn't work, so I have downloaded from the GIT respositories the zip files. When trying to install numba I realized that I need LLVM first.

我将 llvm 下载并解压到 Download 文件夹中.README 说明是:如果您的 LLVM 安装在非标准位置,请先将 LLVM_CONFIG 环境变量指向相应的 llvm-config 可执行文件的路径.";与运行 python setup.py install 命令时得到的 RunTimeError 兼容的消息.

I downloaded and unpacked llvm into the Download folder. The README instructions are: "If your LLVM is installed in a non-standard location, first point the LLVM_CONFIG environment variable to the path of the corresponding llvm-config executable."; a message compatible with the RunTimeError I get when running the python setup.py install command.

我的问题是,我不明白该怎么做才能使 LLVM_CONFIG 环境变量指向相应的 llvm-config 可执行文件.

My problem is that I don't understand what to do in order to make the LLVM_CONFIG environment variable to point to the corresponding llvm-config executable.

有什么帮助吗?谢谢

推荐答案

实际位置由 brew 报告.对我来说是:

The actual location is reported by brew. For me it was:

==> Caveats
LLVM executables are installed in /usr/local/opt/llvm/bin.
Extra tools are installed in /usr/local/opt/llvm/share/llvm.

然后,例如:

LLVM_CONFIG=/usr/local/opt/llvm/bin/llvm-config pip install numba

这篇关于如何将 LLVM_CONFIG 环境变量指向 llvm-config 的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆