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. #66

Open
lqwfree opened this issue Apr 2, 2020 · 4 comments

Comments

@lqwfree
Copy link

lqwfree commented Apr 2, 2020

信息: 用提供的模式无法找到文件。
F:\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py:190: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
信息: 用提供的模式无法找到文件。
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\pydevd.py", line 1758, in
main()
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\pydevd.py", line 1752, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\pydevd.py", line 1147, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "F:/GSCNN-master/train.py", line 385, in
main()
File "F:/GSCNN-master/train.py", line 132, in main
assert_and_infer_cfg(args)
File "F:\GSCNN-master\config.py", line 88, in assert_and_infer_cfg
import encoding
File "F:\Anaconda3\lib\site-packages\encoding_init_.py", line 13, in
from . import nn, functions, parallel, utils, models, datasets, transforms
File "F:\Anaconda3\lib\site-packages\encoding\nn_init_.py", line 12, in
from .encoding import *
File "F:\Anaconda3\lib\site-packages\encoding\nn\encoding.py", line 18, in
from ..functions import scaled_l2, aggregate, pairwise_cosine
File "F:\Anaconda3\lib\site-packages\encoding\functions_init_.py", line 2, in
from .encoding import *
File "F:\Anaconda3\lib\site-packages\encoding\functions\encoding.py", line 14, in
from .. import lib
File "F:\Anaconda3\lib\site-packages\encoding\lib_init_.py", line 15, in
], build_directory=cpu_path, verbose=False)
File "F:\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 661, in load
is_python_module)
File "F:\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 830, in _jit_compile
with_cuda=with_cuda)
File "F:\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 879, in _write_ninja_file_and_build
with_cuda=with_cuda)
File "F:\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 1159, in _write_ninja_file
'cl']).decode().split('\r\n')
File "F:\Anaconda3\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "F:\Anaconda3\lib\subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.

Process finished with exit code 1

Anyone solve this?Many thanks?

@KL-Ding
Copy link

KL-Ding commented Jun 15, 2020

I have the same problem

@oxygen39
Copy link

oxygen39 commented Aug 2, 2020

Have you solved the problem?

@June-Luo
Copy link

Hi,I also met the same problem.Have you solved it?

@Tristesse-stk
Copy link

本人直接将main()函数的第一行代码assert_and_infer_cfg(args)给注释掉,能跑起来

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

5 participants