在win10上配置qiskit错误:numpy.distutils.system_info.NotFoundError:找不到lapack / blas资源

时间:2017-12-07 14:26:03

标签: python-3.x lapack quantum-computing qiskit

我是python的新手,在尝试安装QISKit时遇到了一些问题。

首先,我在cmd上使用pip install qiskit,但显示错误

numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

我在互联网上搜索了pip install scipy。它工作

Collecting scipy
  Using cached scipy-1.0.0-cp36-none-win32.whl
Requirement already satisfied: numpy>=1.8.2 in 
d:\programming\python\lib\site-packages (from scipy)
Installing collected packages: scipy
Successfully installed scipy-1.0.0

然后我再次尝试pip install qiskit。它显示错误:

Found existing installation: scipy 1.0.0
Uninstalling scipy-1.0.0:
  Successfully uninstalled scipy-1.0.0
Running setup.py install for scipy ... error

……

numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

----------------------------------------
Rolling back uninstall of scipy

所以我用第二种方式:

git clone https://github.com/QISKit/qiskit-sdk-py

cd qiskit-sdk-py

然后

pip install -r requirements.txt

再次

Installing collected packages: scipy, sympy
  Found existing installation: scipy 1.0.0
    Uninstalling scipy-1.0.0:
      Successfully uninstalled scipy-1.0.0
  Running setup.py install for scipy ... error

……

    numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

    ----------------------------------------
     Rolling back uninstall of scipy

我该如何解决这个问题并将QISKit添加到python lib?

参考:
https://github.com/QISKit/qiskit-sdk-py/blob/master/doc/install.rst#3.1-Setup-the-environment

1 个答案:

答案 0 :(得分:0)

在Windows上安装scipy,至少是QISKit当前需要的版本,需要安装几个不同的编译器,你可能不会这样做。我建议你安装Anaconda。如果您下载完整的Anaconda软件包,它包含适当的scipy二进制文件,或者您可以conda install scipy=0.19之前执行pip install qiskit

我认为应该解决您当前的问题,但随时与其他人联系 - 我很乐意提供帮助。您还可以在qiskit.orggithub.com/QISKit/qiskit-sdk-pyIBM Q experience community forums上找到更多文档。

干杯, 道格