【问题标题】:RuntimeError raised when install NumPy by using pip on Windows 7在 Windows 7 上使用 pip 安装 NumPy 时引发 RuntimeError
【发布时间】:2014-05-29 16:11:59
【问题描述】:

版本是带有 pip 的 Python 3.4,以及 Windows 7 操作系统中的 Visual Studio 2010。当我在 cmd 中运行 pip install numpy 时,它会给出:

文件“numpy\core\setup.py”,第 682 行,在 get_mathlib_info raise
RuntimeError("损坏的工具链:无法链接简单的 C 程序")
RuntimeError: Broken toolchain: cannot link a simple C program

【问题讨论】:

  • 如果您还没有,请查看answer
  • @Huu Nguyen 谢谢你的回答。我读了那页。但是,它专用于 MacOS 中的一个问题。我的是win7,所以答案对我帮助不大。
  • 链接问题的最佳答案是:运行 Sudo 。这对 Windows 没有帮助。因此,这个问题值得重新讨论。

标签: python numpy pip


【解决方案1】:

尝试使用二进制安装程序。你可以在这里找到它:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

【讨论】:

    猜你喜欢
    • 2017-08-20
    • 1970-01-01
    • 2015-06-12
    • 2015-01-22
    • 1970-01-01
    • 2017-05-07
    • 2014-12-26
    • 1970-01-01
    相关资源
    最近更新 更多