Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Arsmart123 opened this issue Jan 29, 2022 · 1 comment

Comments

@Arsmart123
Copy link

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

@Jichao-Wang
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants