I think your compiler version is too low , Check your system
On Windows
At least Visual Studio 2017 Update 3 (version 15.3.3 with the toolset 14.11)  are needed.
you see here https://github.com/pytorch/pytorch/blob/master/README.md 73