Ubuntu下执行apt install python-pip得到如下错误提示:
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package Python-pip
解决方法如下:(注意,需要切换到root账户,可以使用su -命令):
下载 get-pip.py(https://bootstrap.pypa.io/get-pip.py)
然后执行:
python get-pip.py
参考文档:Installation — pip 9.0.0 documentation