[英]How can I install pip for Python2.7 in Ubuntu 20.04
Is there any way that I can install "pip" for "Python2.7"?有什么方法可以为“Python2.7”安装“pip”吗? I could install python2.7 by
我可以通过安装python2.7
sudo apt install python2-minimal
I tried installing pip for this.为此,我尝试安装 pip。
sudo apt install python-pip / python2-pip / python2.7-pip
but none worked.但没有一个奏效。 Can anybody have solution for this.
任何人都可以解决这个问题。
Try this one:试试这个:
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py # Fetch get-pip.py for python 2.7
python2 get-pip.py
pip --version
Pip for Python 2 is not included in the Ubuntu 20.04 repositories. Pip 对于 Python 2 不包含在 Ubuntu 20.04 存储库中。
Try this guide which suggests to fetch a Python 2.7 compatible get_pip.py
and use that to bootstrap pip
.试试 这个指南,它建议获取 Python 2.7 兼容的
get_pip.py
并使用它来引导pip
。
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.