The project could not be compiled

I’m new to UE ,please help,
l have Visual Studio 2017 community installed and everything is installed properly following a video tutorial

lm having the same error all the time ,l tried uninstalling and installing UE ,but shows the same error " Running C:/Program Files/Epic Games/UE_4.17/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject3d Development Win64 -project=“C:/Users/Wilson/Documents/Unreal Projects/MyProject3d/MyProject3d.uproject” -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for MyProject3d (no existing makefile)
@progress push 5%
Parsing headers for MyProject3dEditor
Running UnrealHeaderTool “C:\Users\Wilson\Documents\Unreal Projects\MyProject3d\MyProject3d.uproject” “C:\Users\Wilson\Documents\Unreal Projects\MyProject3d\Intermediate\Build\Win64\MyProject3dEditor\Development\MyProject3dEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProject3dEditor in 14.3667963 seconds
@progress pop
Performing 9 actions (2 in parallel)
[2/9] Resource ModuleVersionResource.rc.inl
SharedPCH.Engine.cpp
[3/9] Resource PCLaunch.rc
MyProject3dGameModeBase.cpp
MyProject3d.cpp
MyProject3d.init.gen.cpp
MyProject3dGameModeBase.gen.cpp
[8/9] Link UE4Editor-MyProject3d.dll
[9/9] Link UE4Editor-MyProject3d.lib
Creating library C:\Users\Wilson\Documents\Unreal Projects\MyProject3d\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject3d.lib and object C:\Users\Wilson\Documents\Unreal Projects\MyProject3d\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject3d.exp
LINK : fatal error LNK1181: cannot open input file ‘ws2_32.lib’
ERROR: UBT ERROR: Failed to produce item: C:\Users\Wilson\Documents\Unreal Projects\MyProject3d\Binaries\Win64\UE4Editor-MyProject3d.dll
Total build time: 63.79 seconds (Local executor: 0.00 seconds)"

Try deleting the Intermediate folder of your project and then regenerate the visual studio files.