【问题标题】:WARNING: BLAS library not found, Qiskit Installation警告:找不到 BLAS 库,Qiskit 安装
【发布时间】:2020-06-10 21:11:08
【问题描述】:

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

【问题讨论】:

    标签: python qiskit


    【解决方案1】:

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

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

    conda install -c pyscf pyscf
    

    然后又一次:

    pip install qiskit
    

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

    【讨论】:

      猜你喜欢
      • 2023-03-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-25
      • 1970-01-01
      • 2017-11-23
      • 1970-01-01
      • 2022-11-01
      相关资源
      最近更新 更多