【问题标题】:Installing scipy for windows python 2.7为 windows python 2.7 安装 scipy
【发布时间】:2017-10-20 23:05:43
【问题描述】:

所以我需要安装一堆包,包括 scipy.我已经使用 pip 安装了几个,但是当我说“pip install scipy”时,它失败了。为什么是这样?以及如何正确安装它?谢谢。

编辑:我说“pip install scipy”。不工作。

构建scipy失败,抛出如下错误:

正在清理... 命令 /Users/administrator/dev/KaggleAux/env/bin/python2.7 -c "import setuptools, tokenize;file='/Users/administrator/dev/KaggleAux/env/build/scipy/ setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/zl/7698ng4d4nxd49q1845jd9340000gn/T/pip-eO8gua-record/install-record.txt --single-version-externally-managed - -compile --install-headers /Users/administrator/dev/KaggleAux/env/bin/../include/site/python2.7 失败,错误代码 1 在 /Users/administrator/dev/KaggleAux/env/build/scipy 在 /Users/administrator/.pip/pip.log 中存储失败的调试日志

【问题讨论】:

  • 错误信息是什么?你应该发布它。
  • 这是pip install scipy 而不是scipi

标签: python-2.7 scipy packages


【解决方案1】:

从此链接下载相关的scipy包:http://www.lfd.uci.edu/~gohlke/pythonlibs/

cp表示你的python版本

点安装轮子

然后转到您下载软件包的文件夹并执行 pip install filename.whl

希望这应该可行。

【讨论】:

  • 非常感谢!完美运行。
猜你喜欢
  • 2011-07-04
  • 1970-01-01
  • 2016-12-27
  • 2018-02-03
  • 2016-06-12
  • 1970-01-01
  • 2011-06-10
  • 1970-01-01
相关资源
最近更新 更多