我试图按照this tutorial并得到一个错误,当我做到以下几点:Python安装错误:NumPy的包
(DataVizProject) $ pip install -r requirements.txt
它给了我一个很大的错误日志,最后几行,其中有:
C:\python\new-coder\dataviz\DataVizProj\build\numpy\numpy\distutils\system_info.
py:1422: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
warnings.warn(LapackSrcNotFoundError.__doc__)
error: Unable to find vcvarsall.bat
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in C:\python\new-coder
\dataviz\DataVizProj\build\numpy
我知道这是行不通的,因为当我做以下步骤:
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named numpy
>>> import matplotlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named matplotlib
>>>
比ks很多!
你为什么不读错误讯息? “没有找到Lapack(http://www.netlib.org/lapack/)来源”。安装Lapack,你可能会很好。 – tamasgal
您的其他问题('无法找到vcvarsall.bat')也曾在此网站上多次讨论过。根据确切的根本原因,您可能能够找到帮助[这里](http://stackoverflow.com/questions/2667069),[这里](http://stackoverflow.com/questions/2817869),[这里](http://stackoverflow.com/questions/3047542),或[这里](http://stackoverflow.com/questions/6551724)... – Mac