Can’t find necessary C compiler for Pytorch in Windows 10

Hello:
I want to run some pre-trained pytorch model to make some predication.
I have installed the following Pytorch package:
D:\Pytorch\Cartoon-StyleGan2>pip show torch
Name: torch
Version: 1.11.0+cu113

D:\Pytorch\Cartoon-StyleGan2>
But when I want to run some python script to make predication for one pytorch pre-trained model:
D:\Pytorch\Cartoon-StyleGan2>python MakeCartoonPicture.py
C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py:322: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified
warnings.warn(f’Error checking compiler version for {compiler}: {error}’)
INFO: Could not find files for the given pattern(s).
Traceback (most recent call last):
File “D:\Pytorch\Cartoon-StyleGan2\MakeCartoonPicture.py”, line 7, in
from model import Generator

I read the python file: cpp_extension.py
And I also installed some MS C compiler, as the following:
\x64> cl.exe
Microsoft (R) C/C++ Optimizing Compiler Version 19.31.31104 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

usage: cl [ option… ] filename… [ /link linkoption… ]

\x86>cl.exe
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30141 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

usage: cl [ option… ] filename… [ /link linkoption… ]

I think the installed MS C compiler versions:
Either 19.31.31104(x64) or 19.29.30141(x86) is higher than min C compiler version:
MINIMUM_MSVC_VERSION = (19, 0, 24215)

But I can’t install the minimum C compiler version: 19.0.24215. It seems to be an old C compiler version, it is now difficult to install this.
I also tried to install GCC according to the instruction from this python file:
But I don’t know how to find the GCC version from Windows 10.

I also installed NVIDIA cuda 11.6 for Windows 10.
Please advise on how I can fix this issue.
By the way, I am using Python 3.9 on Windows 10.
Thanks,