python-3.x - Numpy 安装损坏的工具链 : cannot link a simple C program

标签 python-3.x numpy

系统:

Windows 10
Python 3.7
Numpy 1.15.1
VS 2017

我不认为这是重复的,因为以下提议的决议失败了:
  • (对于自制软件 - 不适用)
    Numpy Install RuntimeError: Broken toolchain: cannot link a simple C program
  • (未接听)PyCharm pip installs fail, RuntimeError: Broken toolchain: cannot link a simple C program
  • (Windows 没有 sudo)
    Problems with pip install numpy - RuntimeError: Broken toolchain: cannot link a simple C program

  • 附加说明:
    我没有网络访问权限,所以我正在使用“篮子”
    我的安装行如下:
    pip install --no-index -f .basked numpy
    

    我已经在 command prompt 中运行了它, power shell , 和 VS command prompt
    回溯中的最终错误:
     377, in generate_sources
            source = func(extension, build_dir)
          File "numpy\core\setup.py", line 666, in get_mathlib_info
            raise RuntimeError("Broken toolchain: cannot link a simple C program")
        RuntimeError: Broken toolchain: cannot link a simple C program
    

    最佳答案

    我刚刚在这里回答了完全相同的问题:https://stackoverflow.com/a/61563861/209532

    简而言之:您需要在编译路径上有 mt.exe,自 Visual Studio 2017 以来,已被删除,现在可以在 Windows SDK 中找到。

    关于python-3.x - Numpy 安装损坏的工具链 : cannot link a simple C program,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52265584/

    相关文章:

    python - 如何更好地处理数据并设置神经网络参数?

    python-3.x - 无法安装twis​​ted(获取scrapy)

    python - 如何从 for 循环返回多个具有唯一名称的 pandas 数据帧?

    python - python中的异常传播

    python - 屏蔽将 nan 评估为 True 的 numpy 数组

    科学堆栈存储库中的 Python 相对导入与绝对导入

    Python 3.5(32 位): ImportError: cannot import name NUMPY_MKL

    python - 转储时如何删除ns0标签

    python - 用子矩阵替换 numpy 矩阵元素

    python - np.outer 如何帮助创建过滤器内核?