【发布时间】:2018-05-21 16:31:21
【问题描述】:
我是 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 库中?
参考:
https://github.com/QISKit/qiskit-sdk-py/blob/master/doc/install.rst#3.1-Setup-the-environment
【问题讨论】:
-
在
requirements.txt中有一行scipy>=0.19,<0.20所以每当它看到SciPy 1.0 时都会尝试卸载它。
标签: python-3.x lapack quantum-computing qiskit