I want to install pip. It should support Python 3, but it requires setuptools, which is available only for Python 2.
How can I install pip with Python 3?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
edit: Manual installation and use of
setuptoolsis not the standard process anymore.If you’re running Python 2.7.9+ or Python 3.4+
Congrats, you should already have
pipinstalled. If you do not, read onward.If you’re running a Unix-like System
You can usually install the package for
pipthrough your package manager if your version of Python is older than 2.7.9 or 3.4, or if your system did not include it for whatever reason.Instructions for some of the more common distros follow.
Installing on Debian (Wheezy and newer) and Ubuntu (Trusty Tahr and newer) for Python 2.x
Run the following command from a terminal:
Installing on Debian (Wheezy and newer) and Ubuntu (Trusty Tahr and newer) for Python 3.x
Run the following command from a terminal:
Note:
On a fresh Debian/Ubuntu install, the package may not be found until you do:
Installing
pipon CentOS 7 for Python 2.xOn CentOS 7, you have to install setup tools first, and then use that to install
pip, as there is no direct package for it.Installing
pipon CentOS 7 for Python 3.xAssuming you installed Python 3.4 from EPEL, you can install Python 3’s setup tools and use it to install
pip.If your Unix/Linux distro doesn’t have it in package repos
Install using the manual way detailed below.
The manual way
If you want to do it the manual way, the now-recommended method is to install using the
get-pip.pyscript frompip‘s installation instructions.