NN-CUDA-Example icon indicating copy to clipboard operation
NN-CUDA-Example copied to clipboard

subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.(Using jit)

Open Arsmart123 opened this issue 4 years ago • 1 comments

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!!!!

Arsmart123 avatar Jan 29 '22 08:01 Arsmart123

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

Jichao-Wang avatar Aug 12 '22 08:08 Jichao-Wang