Open ajay9438 opened 12 months ago
Do you have MSVC inslalled? It looks like you don’t have nmake, which I think means you don’t have a compiler.
@henryiii Yes i have installed MSVC and I have installed MinGW.
Then you probably need to run in the MSVC terminal, or source the MSVC activation script before building. See https://learn.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-170. CMake does try to find your MSVC install by looking at the registry, but it seems like it's not able to find it. It might not be a bad idea to add the CMake component if it's not already installed (https://learn.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=msvc-170), but scikit-build-core is able to request a copy of CMake from PyPI if one isn't present.
(I'm not an expert on Windows setup, @thewtex or @jcfr might know more). I don't think there's something we are missing that would make it easier on our end, but not sure of that.
Hi @ajay9438 , looking at your screenshot, I see the MS Visual C++ Redistributables and MS Visual Studio Code, but I do not see MS Visual Studio (yes, the names can be confusing). You will want to download and install the Microsoft Visual Studio Community Edition and enable C++ support in the installer.
Originally posted by @ajay9438 in https://github.com/scikit-build/scikit-build-core/issues/374#issuecomment-1833780183