C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x86\\cl.exe’ failed with exit status 2

We Are Going To Discuss About C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x86\\cl.exe’ failed with exit status 2. So lets Start this Python Article.

C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x86\\cl.exe’ failed with exit status 2

  1. How to solve C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

    You probably missing Visual Studion Build Tools (it's an extra command-line toolset you need to install)
    https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019
    EDIT:
    based on a thread found here you should set this:
    INCLUDE="C:\Program Files (x86)\Windows Kits0\Include\10.0.19041.0\ucrt" LIB="C:\Program Files (x86)\Windows Kits0\Lib\10.0.19041.0\um\x86;C:\Program Files (x86)\Windows Kits0\Lib\10.0.19041.0\ucrt\x86"

  2. C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

    You probably missing Visual Studion Build Tools (it's an extra command-line toolset you need to install)
    https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019
    EDIT:
    based on a thread found here you should set this:
    INCLUDE="C:\Program Files (x86)\Windows Kits0\Include\10.0.19041.0\ucrt" LIB="C:\Program Files (x86)\Windows Kits0\Lib\10.0.19041.0\um\x86;C:\Program Files (x86)\Windows Kits0\Lib\10.0.19041.0\ucrt\x86"

Solution 1

You probably missing Visual Studion Build Tools (it’s an extra command-line toolset you need to install)

https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019

EDIT:

based on a thread found here you should set this:

INCLUDE="C:\Program Files (x86)\Windows Kits0\Include\10.0.19041.0\ucrt"
LIB="C:\Program Files (x86)\Windows Kits0\Lib\10.0.19041.0\um\x86;C:\Program Files (x86)\Windows Kits0\Lib\10.0.19041.0\ucrt\x86"

Original Author flaxon Of This Content

Solution 2

in command prompt before running python setup.py install, type:

INCLUDE="C:\Program Files (x86)\Windows Kits0\Include\10.0.19041.0\ucrt"
LIB="C:\Program Files (x86)\Windows Kits0\Lib\10.0.19041.0\um\x86;C:\Program Files (x86)\Windows Kits0\Lib\10.0.19041.0\ucrt\x86"

also add these path to your ‘edit environment variables for your account’ as C:\Program Files (x86)\Windows Kits0\Include\10.0.19041.0\ucrt;C:\Program Files (x86)\Windows Kits0\Lib\10.0.19041.0\um\x86;C:\Program Files (x86)\Windows Kits0\Lib\10.0.19041.0\ucrt\x86

also if you have rights, then add C:\Windows\System32;
if you don’t have rights(work computer etc), then run python setup.py install in command prompt, NOT anaconda prompt!

Original Author Camilla Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment