无法在ubuntu中安装pip? [英] Unable to install pip in ubuntu?

查看:318
本文介绍了无法在ubuntu中安装pip?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试多次安装pip,但无法安装.这是尝试安装pip时终端的外观:

I tried to install pip several times but couldn't. This is how my terminal looks like while trying to install pip:

aman@aman-HP-Pavilion-Notebook:~$ sudo apt-get install python-pip

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

aman@aman-HP-Pavilion-Notebook:~$ pip

The program 'pip' is currently not installed. You can install it by typing:
sudo apt-get install python-pip

aman@aman-HP-Pavilion-Notebook:~$ sudo pip

sudo: pip: command not found

aman@aman-HP-Pavilion-Notebook:~$

推荐答案

尝试使用以下命令:

sudo apt-get purge --auto-remove python-pip

sudo apt-get update

sudo apt-get -y install python-pip

curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"

python get-pip.py

验证:

pip --help

pip -V

该问题可能是Ubuntu 14.04 Universe存储库中可用的软件包.

The issue might be package available in Ubuntu 14.04 Universe repository.

如果这不起作用,请从此处下载.deb:

If that doesn't work, download the .deb from here:

https://packages.ubuntu.com/trusty/all/python-点/下载

右键单击.deb并安装

and right click on the .deb and install it

这篇关于无法在ubuntu中安装pip?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆