Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
681 views
in Technique[技术] by (71.8m points)

visual c++ - Python, installing clarifai --> VS14.0 link.exe failed with exit status 1158

I've got a fresh installation of Python 3.6 + Selenium and now want to install Clarifai 2.0.21.

The following command is failing:

python -m pip install clarifai==2.0.21

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:

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I had a similar problem today, and I solved it referring to

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

To fix the issue, do next steps:

  1. Add this to your PATH environment variables:

    C:Program Files (x86)Windows Kits10inx64

  2. 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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...