0

我正在尝试安装 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 安装的一个问题。有谁知道如何解决这一问题?

4

1 回答 1

2

我遇到了同样的错误,我和 Sierra 在一起。

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

conda install -c pyscf pyscf

然后再一次:

pip install qiskit

我从PySCF 的文档中得到了解决方案。

于 2020-06-12T22:04:18.890 回答