mmgeneration
mmgeneration copied to clipboard
Got error "subprocess.CalledProcessError: Command 'gcc --version | head -n1' returned non-zero exit status 255."
Hi! I got an error "subprocess.CalledProcessError: Command 'gcc --version | head -n1' returned non-zero exit status 255."
The whole information is like:
F:\Anaconda3\envs\openmmlab\python.exe F:/code/openmmlab/mmgeneration/tools/train.py F:\code\openmmlab\mmgeneration\configs\cyclegan\cyclegan_Isgan_id0_resnet_in_blank2raw.py
F:/code/openmmlab/mmgeneration/tools/train.py:98: UserWarning: Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
f'Setting OMP_NUM_THREADS environment variable for each process '
F:/code/openmmlab/mmgeneration/tools/train.py:108: UserWarning: Setting MKL_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
f'Setting MKL_NUM_THREADS environment variable for each process '
'tail' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Traceback (most recent call last):
File "F:/code/openmmlab/mmgeneration/tools/train.py", line 228, in
Hoping more info about this error! Thanks!
Hi @KeranLi, can you run gcc --version | head -n1
and show me the output?
Hi @plyfager! the cmd shows 'gcc' 不是内部或外部命令,也不是可运行的程序或批处理文件。Do this mean I have to install gcc and several related packages?
Same issue for me, any solution?
This is caused by gcc --version
output being different between Windows and Ubuntu.
We will fix this later. A temporary solution is to remove the following lines:
https://github.com/open-mmlab/mmgeneration/blob/6bce6ed0315438b3f7955019a2c6a64078cfd0e8/mmgen/utils/collect_env.py#L50-L52
Thanks! it works!