After you have updated python pip, you may get this import error: ImportError: cannot import name main. In this tutorial, we will introduce you how to fix it.
Open terminal and enter command below:
sudo gedit /usr/bin/pip
Then change content to:
from pip._internal import main if __name__ == '__main__': sys.exit(main.main())
Save this file and open a new terminal to run pip command.