当前位置:   article > 正文

报错记录 pip3 无法下载 subprocess.CalledProcessError: Command ‘(‘lsb_release‘, ‘-a‘)‘ returned non-zero ex_subprocess.calledprocesserror: command '('lsb_rele

subprocess.calledprocesserror: command '('lsb_release', '-a')' returned non-

报错: 

File "/usr/local/python3.7.5/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.

解决方式

 sudo find / -name 'lsb_release.py'


将查找出来的文件 复制到报错处位置

sudo cp /usr/lib/python3/dist-packages/lsb_release.py /usr/local/python3.7.5/lib/python3.7/

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/218825
推荐阅读
相关标签
  

闽ICP备14008679号