UE4 Can't Recognize Visual Studio (windows 10)

ue4 can not open visual studio 2017, I have everything installed and re-installed, it creates the classes but it does not recognize ue4 and visual studio 2017 does not recognize also…