Python,安装 clarifai --> VS14.0 link.exe 失败,退出状态为 1158

标签 python visual-c++ command-line clarifai

我全新安装了 Python 3.6 + Selenium,现在想安装 Clarifai 2.0.21。

以下命令失败:

python -m pip install clarifai==2.0.21

起初它要求 VC++ 14.0,但我有 14.1(带有 VS2017), 所以我安装了具有 14.0 的 VC++2015 BuildTools。这在创建库之前部分有效。

我得到了下一个新错误:

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

知道我的安装中是否缺少某些东西吗? 谢谢你

最佳答案

我今天也遇到了类似的问题,引用一下解决了

Visual Studio can't build due to rc.exe .

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

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

    C:\Program Files (x86)\Windows Kits\10\bin\x64

  2. C:\Program Files (x86)\Windows Kits\8.1\bin\复制这些文件 rc.exe & rcdll.dll x86C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

在较新的 Windows 中,这些文件也可能是最高版本:C:\Program Files (x86)\Windows Kits\10\bin\10.0.VERSION\x86

关于Python,安装 clarifai --> VS14.0 link.exe 失败,退出状态为 1158,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43858836/

相关文章:

Python Matplotlib - 具有日期值的 x 轴的平滑绘图线

c++ - 零长度数组

bash - 您最喜欢使用 Bash 的命令行技巧是什么?

C++ 执行脚本 Aprog 命令未找到

powershell - 如何在命令行上传递一系列值-将表达式作为参数传递

c++ - 重复的 Windows 加密服务提供程序导致 Python w/Pycrypto

python - 对 df 中的唯一值执行 groupby 计数的有效方法

python - 如何使用 python 将 pdf 文件打印到标准输出?

c++ - MSVS 2010 和 C++ 标准的构建问题

c++ - 你如何在 C++ 中将 UINT8 转换为 UINT32?