系统:
Windows 10
Python 3.7
Numpy 1.15.1
VS 2017
我不认为这是重复的,因为以下提议的决议失败了:
Numpy Install RuntimeError: Broken toolchain: cannot link a simple C program
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/