我试着按照这个答案的说明但easy_install-2.6找不到pip:
>sudo easy_install-2.6 pip
Processing pip
error: Not a recognized archive type: pip
Run Code Online (Sandbox Code Playgroud)
如何为python 2.6安装pip?
在这个帖子中解释了我对pip for 2.6的根需求.
$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python3-pip
Run Code Online (Sandbox Code Playgroud)
我的 pip 和 pip3 都安装在 python 3 中
pip -V
pip 20.1.1 from /usr/lib/python3/dist-packages/pip (python 3.8)
pip3 -V
pip 20.1.1 from /usr/lib/python3/dist-packages/pip (python 3.8)
Run Code Online (Sandbox Code Playgroud)
现在 我 无法 …