Unreal engine 4 does not detect visual studio 2017 after installing it

After installing Visual Studio Community 2017, the unreal engine does not find the compiler, I have tried a lot of things: uninstalling both programmes, changing the preferences of the engine… But the problem is still there and I cannot create a project based on c++.

Just to be sure you have followed these steps

and these

and rebooted after doing these.

I have done it and I have the same problem

man, that sucks. Could try to make a BP project and turn it into a c++ project, but you will most likely get the same error.

I found this post. These guys had more suggestions.