What worked for me was to install the C++ build tools from Visual Studio. I was installing it on a new device, and this resolved the issue.