I am trying to install packages using pip and it is throwing error.
Command that I have used,
sudo pip install selenium
The error
In short, it was solved doing this:
$ sudo ln -s /usr/share/pyshared/lsb_release.py /usr/local/lib/python3.8/site-packages/lsb_release.py
Details:
When trying $ sudo pip3 install something I had the error referred in this thread:
... a long traceback, and ...
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
It started to happen after updating from python 3.5 to 3.8. I have tried several solutions without success. A clue for the solution came when executing $ lsb_release -a which gave me the following error:
Traceback (most recent call last):
File "/usr/bin/lsb_release", line 25, in
import lsb_release
ModuleNotFoundError: No module named 'lsb_release'
This other error message led me to this solution which is explaining that from version 3.6 python has no lsb_release.py file any more. The solution is just creating a link for this missing file.