ubuntu,装完PYTHON3 pip3 install 报错

ubuntu,装完PYTHON3 pip3  install 报错
CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1
Traceback (most recent call last):


这应该是python2和python3引起的问题

1、先在控制台输入python看看当前是python几
2、lsb_release需要使用python2,查看/usr/bin/lsb_release环境是不是python2,如果不是则改为#!/usr/bin/python2.7
3、检查一下pip是不是和python版本一致


/usr/bin/lsb_release 修改这个文件,用#! /usr/bin/python2 -Es   用Python2 装完会变成3

猜你喜欢

转载自www.cnblogs.com/liuyoushui/p/9101113.html