Error creating a new c++ project/script

Hello!When I try to make a new project or creating a script for an actor(in blueprint projects) I get this error:

ERROR: UnrealBuildTool Exception: No 32-bit compiler toolchain found in E:\visual studio\VC\bin\cl.exe
When I try to search for that file in E:,I can’t even find “visual studio” folder.I used to have visual studio 2015 and then I downloaded visual studio 2017(I installed all c++ toolkits and everything,also unreal engine installer from game kit,I even changed the import export options to c++).I deleted visual studio 2015 folder with everything in it.I think that unreal engine doesn’t find the new folder where cl.exe is because I installed the VS 2017 in C:.How can i setup unreal engine to find the new folder.
Thank you!

Solved it.I had to reinstall visual studio 2015 with c++ components.