Encounter an error while running a pytorch project

actually i have a project using barber shop deep learning library I have installed cuda 11.8 , cudnn 8.9.7, python 11 and visual studio 2019 but when i perform task it give me this error

C:\Users\Web PC-05\anaconda3\envs\Brshop\Lib\site-packages\torch\utils\cpp_extension.py:381: 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 “C:\Users\Web PC-05\Barbershop\main.py”, line 14, in from models.Embedding import Embedding File “C:\Users\Web PC-05\Barbershop\models\Embedding.py”, line 3, in from models.Net import Net File “C:\Users\Web PC-05\Barbershop\models\Net.py”, line 3, in from models.stylegan2.model import Generator File “C:\Users\Web PC-05\Barbershop\models\stylegan2\model.py”, line 11, in from models.stylegan2.op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d File “C:\Users\Web PC-05\Barbershop\models\stylegan2\op_init _.py”, line 1, in from .fused_act import FusedLeakyReLU, fused_leaky_relu File “C:\Users\Web PC-05\Barbershop\models\stylegan2\op\fused_act.py”, line 10, in fused = load( ^^^^^ File “C:\Users\Web PC-05\anaconda3\envs\Brshop\Lib\site-packages\torch\utils\cpp_extension.py”, line 1306, in load return _jit_compile( ^^^^^^^^^^^^^ File “C:\Users\Web PC-05\anaconda3\envs\Brshop\Lib\site-packages\torch\utils\cpp_extension.py”, line 1710, in _jit_compile _write_ninja_file_and_build_library( File “C:\Users\Web PC-05\anaconda3\envs\Brshop\Lib\site-packages\torch\utils\cpp_extension.py”, line 1810, in _write_ninja_file_and_build_library _write_ninja_file_to_build_library( File “C:\Users\Web PC-05\anaconda3\envs\Brshop\Lib\site-packages\torch\utils\cpp_extension.py”, line 2238, in _write_ninja_file_to_build_library _write_ninja_file( File “C:\Users\Web PC-05\anaconda3\envs\Brshop\Lib\site-packages\torch\utils\cpp_extension.py”, line 2373, in _write_ninja_file cl_paths = subprocess.check_output([‘where’, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:\Users\Web PC-05\anaconda3\envs\Brshop\Lib\subprocess.py”, line 466, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:\Users\Web PC-05\anaconda3\envs\Brshop\Lib\subprocess.py”, line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command ‘[‘where’, ‘cl’]’ returned non-zero exit status 1.

I dont know what should i do?
I already set environmrnt path and update visual studio.

It seems the where and cl command are missing and your issue might be related to this one reported in their repository with the same error message.

i have successfully run this project but now when i run same project my command is continue to load and do not generate output but also do not give any error.
Do you have any idea about this issue?