Python,安装 clarifai -->VS14.0 link.exe 失败,退出状态为 1158 [英] Python, installing clarifai --> VS14.0 link.exe failed with exit status 1158

查看:18
本文介绍了Python,安装 clarifai -->VS14.0 link.exe 失败,退出状态为 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),所以我安装了 VC++2015 BuildTools,它有 14.0.0 版本.在创建库之前,这部分起作用.

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.0VCBINlink.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.0VCBINlink.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

由于 rc 无法构建 Visual Studio.exe.

要解决此问题,请执行以下步骤:

To fix the issue, do next steps:

  1. 将此添加到您的 PATH 环境变量中:

C:Program Files (x86)Windows Kits10inx64

复制这些文件 rc.exe &rcdll.dllC:Program Files (x86)Windows Kits8.1inx86C:Program Files (x86)Microsoft VisualStudio 14.0VCin

Copy these files rc.exe & rcdll.dll from C:Program Files (x86)Windows Kits8.1inx86 to C:Program Files (x86)Microsoft Visual Studio 14.0VCin

在较新的 Windows 中,这些文件也可能是最高版本:C:Program Files (x86)Windows Kits10in10.0.VERSIONx86

In newer Windows these files might also be in the highest version: C:Program Files (x86)Windows Kits10in10.0.VERSIONx86

这篇关于Python,安装 clarifai -->VS14.0 link.exe 失败,退出状态为 1158的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆