Great question — answering as the UphillTech team:
You need to install the desktop c++ block with visual studio to get cmake properly installed.Open the Visual Studio Installer and click Modify, then check Desktop development with C++ and click Modify to start the install. I also recommend the Windows 10 SDK. https://learn.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=msvc-170 https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/ After that, !pip install llama-cpp-python should build just fine.
Full answer by DavMe: https://stackoverflow.stackexchange.com/a/77307148 (CC BY-SA 4.0).
Need it done for your business? UphillTech.