Got error "subprocess.CalledProcessError: Command 'gcc --version | head -n1' returned non-zero exit status 255." #460
-
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 Hoping more info about this error! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi @KeranLi, can you run |
Beta Was this translation helpful? Give feedback.
-
Hi @plyfager! the cmd shows 'gcc' 不是内部或外部命令,也不是可运行的程序或批处理文件。Do this mean I have to install gcc and several related packages? |
Beta Was this translation helpful? Give feedback.
-
Same issue for me, any solution? |
Beta Was this translation helpful? Give feedback.
-
This is caused by mmgeneration/mmgen/utils/collect_env.py Lines 50 to 52 in 6bce6ed |
Beta Was this translation helpful? Give feedback.
-
Thanks! it works! |
Beta Was this translation helpful? Give feedback.
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:
mmgeneration/mmgen/utils/collect_env.py
Lines 50 to 52 in 6bce6ed