NN-CUDA-Example
NN-CUDA-Example copied to clipboard
subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.(Using jit)
The environment is competely same....But when I am using pytorch with jit method, below error appears:
subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.
Any suggestion? Thank you!!!!
It seems the path of your compiler is not correct. I suggest you add the environment path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64" to PATH.
Someone says typing the following commands in CMD also works.
call “C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat”
set DISTUTILS_USE_SDK=1