警告:找不到 BLAS 库,Qiskit 安装

WARNING: BLAS library not found, Qiskit Installation

我正在尝试安装 Qiskit,但遇到错误:

****************************************************************
*** WARNING: BLAS library not found.
* You can include the BLAS library in the global environment LDFLAGS, eg
*   export LDFLAGS='-L/path/to/blas/lib -lblas'
* or specify the BLAS library path in  PYSCF_INC_DIR
*   export PYSCF_INC_DIR=/path/to/blas/lib:/path/to/other/lib
****************************************************************

我在 Mac OS El Capitan,使用 Python 3.7.

如果有帮助,我 运行 np.__config__ 看看我是否安装了 BLAS,它似乎有效,因为它返回了这个:

openblas_lapack_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/usr/local/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]

所以我认为这只是我的 Qiskit 安装的问题。有谁知道如何解决这个问题?

我遇到了同样的错误,我使用的是 Sierra。

假设您已经使用 Anaconda 创建并激活了环境,请尝试 运行

conda install -c pyscf pyscf

然后又是:

pip install qiskit

我从 PySCF's docs 得到了解决方案。