Windows 10。使用最新版本的 pip。蟒蛇 3.8.3。
收到此错误。
我尝试通过 pycharm 安装并得到同样的错误。
File "numpy\core\setup.py", line 667, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
----------------------------------------
ERROR: Command errored out with exit status 1:
'C:\Users\thisuser\AppData\Local\Programs\Python\Python38-32\python.exe' -u -c 'import sys,
setuptools,
tokenize; sys.argv[0] = '"'"'C:\\Users\\thisuser\\AppData\\Local\\Temp\\pip-install-
t1sn8hyk\\numpy\\setup.py'"'"'; __file__='"'"'C:\\Users\\thisuser\\AppData\\Local\\Temp\\pip-
install-t1sn8hyk\\numpy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)
(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
__file__, '"'"'exec'"'"'))' install --record 'C:\Users\thisuser\AppData\Local\Temp\pip-record-
zxkfqpfd\install-record.txt' --single-version-externally-managed --prefix
'C:\Users\thisuser\AppData\Local\Temp\pip-build-env-t7emgfqy\overlay' --compile --install-headers
'C:\Users\thisuser\AppData\Local\Temp\pip-build-env-t7emgfqy\overlay\Include\numpy' Check the logs
for
full command output.
----------------------------------------
ERROR: Command errored out with exit status 1:
'C:\Users\thisuser\AppData\Local\Programs\Python\Python38-32\python.exe'
'C:\Users\thisuser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pip' install --
ignore-installed --no-user --prefix 'C:\Users\thisuser\AppData\Local\Temp\pip-build-env-
t7emgfqy\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i
https://pypi.org/simple -- 'cython >= 0.29' 'numpy==1.14.5; python_version<'"'"'3.7'"'"''
numpy==1.16.0; python_version>='"'"'3.7'"'"'' setuptools setuptools_scm wheel Check the logs for
full command output