我是 python 新手,在尝试安装 QISKit 时遇到了一些问题。
首先,我pip install qiskit
在cmd上使用,但显示错误
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