Python,安装clarifai-> VS14.0 link.exe失败,退出状态为1158 [英] Python, installing clarifai --> VS14.0 link.exe failed with exit status 1158
问题描述
我已经重新安装了Python 3.6 + Selenium,现在想安装Clarifai 2.0.21.
I've got a fresh installation of Python 3.6 + Selenium and now want to install Clarifai 2.0.21.
以下命令失败:
python -m pip install clarifai==2.0.21
起初它要求VC ++ 14.0,但我有14.1(使用VS2017), 所以我安装了具有14.0的VC ++ 2015 BuildTools.在创建该库之前,这部分起作用.
At first it requested VC++ 14.0 but I had 14.1 (with VS2017), so I installed VC++2015 BuildTools which has 14.0. This worked partly until creating the library.
接下来我得到了新的错误:
I got the new error as next:
生成代码
完成生成代码
链接:致命错误LNK1158:无法运行"rc.exe" 错误:命令"C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ BIN \ link.exe"失败,退出状态为1158
Generating code
Finished generating code
LINK : fatal error LNK1158: cannot run 'rc.exe' error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe' failed with exit status 1158
是否知道我的安装中缺少什么? 谢谢
Any idea if there's something missing in my installation? Thank You
推荐答案
我今天遇到了类似的问题,我通过引用
I had a similar problem today, and I solved it referring to
要解决此问题,请执行以下步骤:
To fix the issue, do next steps:
-
将此添加到您的
PATH
环境变量:
C:\Program Files (x86)\Windows Kits\10\bin\x64
复制这些文件rc.exe
& rcdll.dll
从C:\Program Files (x86)\Windows Kits\8.1\bin\x86
到C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
Copy these files rc.exe
& rcdll.dll
from C:\Program Files (x86)\Windows Kits\8.1\bin\x86
to C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
在较新的Windows中,这些文件也可能是最高版本:C:\Program Files (x86)\Windows Kits\10\bin\10.0.VERSION\x86
In newer Windows these files might also be in the highest version: C:\Program Files (x86)\Windows Kits\10\bin\10.0.VERSION\x86
这篇关于Python,安装clarifai-> VS14.0 link.exe失败,退出状态为1158的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!