Skip to main content
 首页 » 编程设计

python之在 python 中安装 scipy 模块时出错

2025年04月02日21落叶无声

我正在尝试使用 pip 在 python 中安装 scipy 模块...它显示以下错误...

Command "c:\users\sony\appdata\local\programs\python\python35-32\python.exe  
-u -c "import setuptools,  
tokenize;__file__='C:\\Users\\sony\\AppData\\Local\\Temp\\pip-build- 
vmyvqdgv\\scipy\\setup.py';exec(compile(getattr(tokenize, 'open', open) 
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install -- 
record C:\Users\sony\AppData\Local\Temp\pip-mf_0tla_-record\install- 
record.txt --single-version-externally-managed --compile" failed with error 
code 1 in C:\Users\sony\AppData\Local\Temp\pip-build-vmyvqdgv\scipy\ 

当我尝试使用 easy_install 时,它显示:

error: no lapack/blas resources found 

任何解决方案请...

请您参考如下方法:

  1. 首先从 here 下载 wheel 安装 Numpy+MKL .
  2. 转到您的 .whl 文件位置并键入 pip install <filename>
  3. 现在从 here 下载 SciPy .
  4. 重复第 2 步。

注意:先通过pip install --upgrade pip升级pip