error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

xieyapei 101 Reputation points
2022-10-10T07:25:37.857+00:00

Hi,

I have installed Microsoft C++ Build Tools 2022 to help me compile C files created by Cython. When I install DCNv2, it gives me this error:

error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe' failed with exit code 2

Please help as I am not well-rounded with Visual Studio and just need to get my code running.

Thanks

Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
{count} votes

6 answers

Sort by: Most helpful
  1. Jason 5 Reputation points Microsoft Employee
    2023-07-26T11:17:52.48+00:00

    Had a similar issue with pip installs, installed Microsoft C++ Build Tools 2022 but was getting a failure to compile simple test program. Resolved this with the Visual Studio Installer and installed the workload, Desktop Development with C++.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.