Skip to content

Got error "subprocess.CalledProcessError: Command 'gcc --version | head -n1' returned non-zero exit status 255." #460

Answered by LeoXing1996
KeranLi asked this question in How-to
Discussion options

You must be logged in to vote

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:

gcc = subprocess.check_output('gcc --version | head -n1', shell=True)
gcc = gcc.decode('utf-8').strip()
env_info['GCC'] = gcc

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zengyh1900
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
How-to
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #316 on October 12, 2022 11:23.