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.
I just want to thank @Nick Chapman for the answer. After editting the first line in /usr/bin/lsb_release
to #! /usr/bin/python3.10
the problem was solved.
Dreisteine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.