Unable to locate package python-pip

Unable to locate package python-pip

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.

然后执行:

python get-pip.py

参考文档:

  1. Installation — pip 9.0.0 documentation

你可能感兴趣的:(ubuntu,python,ubuntu,python,pip,python-pip,apt)