解决方案:找到lsb_release.py文件和CommandNotFound目录,把它们拷贝到报的错误中subprocess.py所在文件夹命令如下:sudo find / -name'lsb_release.py'# result:# /usr/share/pyshared/lsb_release.py# /usr/lib/python2.7/dist-packages/lsb_release.py# /usr/lib/python3/dist-packages/lsb_release.pypython -V# Python 3.6.6sudo cp /usr/lib/python3/dist-packages/lsb_release.py /usr/local/lib/python3.6/
实操可能不同,酌情更改
作者:Kelly_姣
链接:https://www.jianshu.com/p/3a2877edebe8
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。