Install Pip-3.2 on Cygwin

I have Python 3 installed on Cygwin. However, I cannot install Python 3 packages through pip . Is there any way to do this?

+74
python pip cygwin
Sep 05 '13 at 16:24
source share
4 answers

1) When installing cygwin, make sure you install python / python-setuptools from the list. This will install the "easy_install" package.

2) Enter the following command:

 easy_install-ab pip 

You should replace ab with your python version, which may be 2.7 or 3.4 or something else.

+110
Aug 15 '15 at 17:50
source share

If you have more than one python installation, you need to install pip (and possibly also setuptools) for each installation separately.
To do this, you can first download ez_setup.py and run it with python3:

 /usr/bin/python3 ez_setup.py 

This should install setuptools as well as create an easy_install script for your python version, for example. /usr/bin/easy_install-3.2 , which you can use to install pip:

 /usr/bin/easy_install-3.2 pip 

This will install pip in the python3 package directory and again create a script /usr/bin/pip-3.2 which you can use to install packages for this version of python.

Alternatively, you can follow the installation instructions from here and here .

+43
Sep 05 '13 at 19:21
source share

I think the alternative installation instructions related to mata are simple:

To install pip, safely download get-pip.py .

Then run the following (which may require administrator access):

 python get-pip.py 
+25
Jun 06 '15 at 17:03
source share

Since the OP specifically talks about Python3, I think we need to point out that just in case the user already has Python2 installed, which is very likely.

 # If you don't have Python3 already, use apt-cyg: apt-cyg install python3 # First update pip, pip2 pip2 install --upgrade pip # Install pip3: python3 -m ensurepip # Finally update pip3: pip3 install --upgrade pip $ pip3 -V pip 9.0.1 from /usr/lib/python3.4/site-packages (python 3.4) 

PS. There are several apt-cyg forks , you will like it.

+3
Mar 24 '17 at 23:31
source share



All Articles