pip is showing error 'lsb_release -a' returned non-zero exit status 1

前端 未结 10 861
迷失自我
迷失自我 2020-12-10 01:00

I am trying to install packages using pip and it is throwing error.

Command that I have used,

sudo pip install selenium

The error

10条回答
  •  执笔经年
    2020-12-10 01:57

    The solution for this issue is to update the shebang on the /usr/bin/lsb_release

    The shebang on this lsb_release file tells which version of python to use. This has to match with the current version of python you using.

    For instance, I'm using Python 3.5 so I'd change the shebang to be:

    #!/usr/bin/python3.5 -Es
    

    And get it working.

提交回复
热议问题