When we are using python pip to install netifaces packages, we get this link error:
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
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
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.
Thank you! This was driving me crazy!