我多次尝试安装 pip,但都失败了。这是我的终端在尝试安装 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 存储库中可用的软件包。
如果这不起作用,请从此处下载 .deb:
https://packages.ubuntu.com/trusty/all/python-pip/download
然后右键单击 .deb 并安装它
关于python - 无法在 ubuntu 中安装 pip?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44296498/