赞
踩
如题,
无论是pip install还是pip list出现subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
的时候
很多人给的建议是
rm -rf /usr/bin/lsb_release
其实这是默认的python组件想要用python3但是lsb_release想用python2。所以除了直接删除lsb_release,直接修改lsb_release的第一行为:#! /usr/bin/python2.7
就可以了。
ref:https://stackoverflow.com/questions/44967202/pip-is-showing-error-lsb-release-a-returned-non-zero-exit-status-1/44967506#44967506?newreg=2b04614354eb40b5a15f548f443c9002
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。