error: command C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe

问题:安装python中模块,解决了上一个error:Microsoft Visual C++ 14.0 is required. Get it with Microsoft Visual C++ Build Tools,报一个新的error:

LINK : fatal error LNK1158: cannot run 'rc.exe'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1158

解决办法:
将C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64中的

rc.exe
rcdll.dll

复制到C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64中应该就行
注:我也复制到了C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin中

再pip安装,结果成功。
参考链接
https://stackoverflow.com/questions/35215971/lnk1158-cannot-run-rc-exe-x64-visual-studio

转载于:https://blog.csdn.net/kaever/article/details/106526610

你可能感兴趣的:(error: command C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe)