问题:安装pip后无法升级
命令:
系统版本:Ubuntu 16
执行:sudo apt install python-pip
pip -v 查看pip的版本如下:
pip 8.1.1 from /usr/bin/python2.7/dist-packages (python 2.7)
执行升级命令pip install --upgrade pip提示如下:
Collecting pip
Exception:
Traceback (most recent call last):
File "/usr/lib/ython2.7/dist-packages/pip/basecommand.py",line 209,inmain status =self.run(options.args)
……
求大大指点一下,谢谢!
使用wget安装成功,具体如下:
1.sudo apt-get update
2.sudo apt-get upgrade
3.wget https://bootstrap.pypa.io/get...
4.sudo python3 get-pip.py