Reputation: 3104
System:
Windows 10
Python 3.7
Numpy 1.15.1
VS 2017
I don't believe this is a duplicate as the following proposed resolutions have failed:
Additional Note: I don't have network access so I'm using 'basket' my install line is as follows:
pip install --no-index -f .basked numpy
I've run this in the command prompt
, power shell
, and VS command prompt
Final Error in Traceback:
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
Upvotes: 6
Views: 10415
Reputation: 4027
I just answered the exact same question here: https://stackoverflow.com/a/61563861/209532
In short: You need to have mt.exe on the path to compile, Since Visual Studio 2017, is has been removed and is now to be found in the Windows SDK.
Upvotes: 4