问题描述:
(1)使用conda命令时发生错误
a. 使用conda info -e 或conda list命令时,发生错误,并提示输入[Y/n];
b. 当输入y时,出现:subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
c. 但使用conda activate env_name时可以成功;
解决方法:
# 先查找 lsb_release文件,可能需要再加上 sudo
find / -name lsb_release
# 找到后删除 rm -rf /usr/bin/lsb_release
问题解决!