Encounter an error while running a pytorch project

Mahrukh_Butt482: <p>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</p>
<p>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 <a href="http://models.Net" rel="noopener nofollow ugc">models.Net</a> 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_<em>init</em> _.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.</p>
<p>I dont know what should i do?<br>
I already set environmrnt path and update visual studio.</p>

ptrblck: <aside class="quote no-group" data-username="Mahrukh_Butt482" data-post="1" data-topic="200033">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/mahrukh_butt482/48/68896_2.png" class="avatar"> Mahrukh_Butt482:</div>
<blockquote>
<p>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.</p>
</blockquote>
</aside>
<p>It seems the <code>where</code> and <code>cl</code> command are missing and your issue might be related to <a href="https://github.com/ZPdesu/Barbershop/issues/40">this one</a> reported in their repository with the same error message.</p>

Mahrukh_Butt482: <p>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.<br>
Do you have any idea about this issue?</p>