Relative Content

Tag Archive for subprocessdebian

subprocess.CalledProcessError: Command ‘(‘lsb_release’, ‘-a’)’ returned non-zero exit status 1 in raspberry pi (debian linux 11)

This is not a question but just a note to pip is showing error ‘lsb_release -a’ returned non-zero exit status 1
I encounter this error after changing to a new python version to 3.10.0 when build and install python afterwards. If I just leave it and go on creating my venv using python -m venv my_venv, I get Error: Comman '['/home/pi/my_venv/bin/python, ‘-Im’, ‘ensurepip’, ‘–upgrade’, ‘–default-pip’]’ returned non-zero exit status 1` and cannot create it.