I’m not deeply familiar with Windows, but these lines seem interesting:
Does not match the generator used previously: Visual Studio 15 2017
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

Could you remove the cache file etc. and rerun it?
python setup.py clean might also work to get rid of these files.