Fix Python Pip Install LINK : fatal error LNK1158: cannot run ‘rc.exe’ Error – Python Tutorial

By | September 1, 2020

When we are using python pip to install netifaces packages, we get this link error:

LINK : fatal error LNK1158: cannot run ‘rc.exe’

fix python pip install orange3 LINK - fatal error LNK1158 - cannot run rc.exe

In this tutorial, we will introduce some steps to fix it.

How to fix this error?

You can fix this error by following steps.

(1) Find the path of rc.exe and rcdll.dll

As to us, we are using win10 64 bit, python = 3.5

the path of rc.exe in win 10

We can find the path of rc.exe is C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64

Open this path.

Copy rc.exe and rcdll.dll

copy rc.exe and rcdll.dll

Paste rc.exe and rcdll.dll to C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

This path you can find in python terminal.

Install netifaces again, we can find it is installed successfully.

python pip install netifaces

One thought on “Fix Python Pip Install LINK : fatal error LNK1158: cannot run ‘rc.exe’ Error – Python Tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *