subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.

subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.

浪子 18 2022-09-17

这个时候运行pip3 时出现了问题:

subprocess.CalledProcessError: Command \'(\'lsb\_release\', \'-a\')\' returned non-zero exit status 1.

解决办法

运行

sudo rm /usr/bin/lsb_release