需要为 python 3 安装 pip

Need to install pip for python 3

我已经在服务器上安装了 python 2.7 和 python 3.3,现在我需要为 python 3.

安装 pip

这是我到目前为止所尝试的。

sudo apt-get install python3-setuptools
sudo easy_install3 pip

这将为 python 3.2 安装 pip(我没有安装 python 3.2),

sudo apt-get install python3-pip

这将为 python 3.2

安装 pip

My need is to install few packages with python3.3 (lxml, ftplib, etc...) for that I need pip but unfortunately I was unable to do this.

我不能只设置 python 3.3 因为基本需要是 python 2.7(对于 odoo)。

谁能指导我正确的方向。

之后:

sudo apt install python3-pip

您应该可以使用 pip3 命令安装软件包。 尝试:

pip --version
pip3 --version