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

前端 未结 10 870
迷失自我
迷失自我 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:59

    I was able to fix this error message with unset _PYTHON_SYSCONFIGDATA_NAME. This prevented lsb_release from trying to import $_PYTHON_SYSCONFIGDATA_NAME. After that, pip install worked again. This fix applies if you run lsb_release -a and get ModuleNotFoundError: No module named '_sysconfigdata_x86_64_conda_cos6_linux_gnu'.

提交回复
热议问题