Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I install Python 2.7 with Unix libraries on Cygwin?

Obviously getting Python 2.6 is easy - just install the Cygwin package with setup.exe.

Installing the Windows version of Python 2.7 was also easy, but I could not access the Unix modules.

So I've been trying to install Python from source, but it seems every time I fix one Make error there is another waiting just behind it. I am getting rather fed up with the whole thing and thinking someone else must have either done this or figured out it is impossible.

I feel installing Linux would have been the easier route...

I have been trying for about a week to get this to work.

share|improve this question
I assume all the trouble you're hitting is the reason why Cygwin hasn't moved to using Python 2.7 by default. – me_and Mar 1 '12 at 11:14

Maybe following this guide will be enough for what you need:

  1. Download the desired version from Here are the direct links: Python-2.7.1.tar.bz2, Python-2.7.2.tar.bz2, or Python-2.7.3.tar.bz2.

  2. Download the matching patch Python-2.7.1-cygwin.patch.bz2, Python-2.7.2-cygwin.patch.bz2, or Python-2.7.3-cygwin.patch.bz2.

  3. Unpack the sources, for example for 2.7.3:
    tar -jxvf Python-2.7.3.tar.bz2

  4. Patch the sources, for example for 2.7.3:
    bzcat Python-2.7.3-cygwin.patch.bz2 | patch -p0

  5. Configure the build. For example, you may want to install into /usr/local:
    cd Python-2.7.3
    ./configure --prefix=/usr/local

  6. Compile the configured sources:

  7. Install the compiled build:
    make install

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.