解决方法:
pip install --upgrade setuptools
python -m pip install --upgrade pip
ImportError: cannot import name main
sudo vim /usr/bin/pip
把下面的三行
from pip import main
if __name__ == '__main__':
sys.exit(main())
换成下面的三行
from pip import __main__
if __name__ == '__main__':
sys.exit(__main__._main())