Skip to content


Subversion checkout URL

You can clone with
Download ZIP


`pip` command exits immediately on Cygwin #1448

evan opened this Issue · 27 comments

This used to work for us, but sometime in the last two months fresh installs of pip in cygwin are broken:

eweaver@autumn-windows ~
$ wget
--2014-01-09 14:43:40--                 py
Connecting to||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 556782 (544K) [text/plain]
Saving to: `'

100%[======================================>] 556,782     1.45M/s   in 0.4s

2014-01-09 14:43:41 (1.45 MB/s) - `' saved [556782/556782]

eweaver@autumn-windows ~
$ python
Downloading/unpacking pip
  Downloading pip-1.5.tar.gz (898kB): 898kB downloaded
  Running egg_info for package pip

    warning: no files found matching 'pip/cacert.pem'
    warning: no files found matching '*.html' under directory 'docs'
    warning: no previously-included files matching '*.rst' found under directory                  'docs/_build'
    no previously-included directories found matching 'docs/_build/_sources'
Installing collected packages: pip
  Running install for pip

    warning: no files found matching 'pip/cacert.pem'
    warning: no files found matching '*.html' under directory 'docs'
    warning: no previously-included files matching '*.rst' found under directory                  'docs/_build'
    no previously-included directories found matching 'docs/_build/_sources'
    Installing pip script to /usr/bin
    Installing pip2.7 script to /usr/bin
    Installing pip2 script to /usr/bin
Successfully installed pip
Cleaning up...

eweaver@autumn-windows ~
$ pip

eweaver@autumn-windows ~
$ pip help

eweaver@autumn-windows ~
$ pip list

eweaver@autumn-windows ~
$ python --version
Python 2.7.5

First of all, I believe pip 1.4.1 was still working. Unfortunately, it seems impossible to install a specific version of pip using the script; it seems to always install the latest version so I don't have an easy way to revert to 1.4.1 and confirm.

The OP mentions fresh install, but I am getting the same problem upgrading to 1.5.1. For what it's worth, I now have setuptools 2.1 and pip 1.5.1.

Below are the output of a few commands I have tried:

In Bash:

I expected to see a list of my installed packages, but I didn't see any.

Now, In the interactive interpreter:

$ python
Python 2.7.5 (default, Oct  2 2013, 22:34:09)
[GCC 4.8.1] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.executable
>>> print sys.path
['', '/usr/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg', '/usr/lib/', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-cygwin', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages']
>>> import pip
# At this point the interpreter quits with an exit code of 0

Again, in Bash:

$ python -c "import setuptools; print(setuptools.__file__)"

you could try the imports individually in /usr/lib/python2.7/site-packages/pip/ and see if you can find the culprit.


Same problem: cygwin64, windows 8.1

@qwcode tried:

from pip.exceptions import InstallationError

And the interpreter exits here. Also tried running python -v to see if it chokes on loading some dependency, but can't see any problems there.

I am not a Python developer, so would appreciate any help on how to get this to work.


Looks like the issue is gone now, using:

  • Cygwin 64-bit 1.7.28
  • Python 2.7.5
  • setuptools 2.1.2
  • pip 1.5.2

I am still experiencing this problem. I am running the latest version of everything.

If you required any further details please ask, but I am running the same versions as ksze listed.


This may cause by cygwin python2.7.5-3
I used gdb on python and run pip, then I got a segment fault at (? lackof debuginfo)

So, I built python src on 2.7.6 on my machine (windows 8.1 cygwin 2.83 64bit)
everything runs well


Could I have a little extra detail on how to build python 2.7.6 for cygwin? Did you install a cygwin specific package or just install it as per normal in windows and update Cygwin path?



Save problem with cygwin64 and windows 7 (pip3 is making a core dump), bit cygwin32 bit works fine.


Same here. pip exits with no output on cygwin64, but works under cygwin32.

cygwin 1.7.28-2
python 2.7.5-3
python-setuptools 0.6.34-1


Same problem here

cygwin 1.7.28-2
python 2.7.5-3


Same problem with:

cygwin 1.7.28-2
python 2.7.5
python-setuptools 2.2
pip 1.5.4

Had to download a previous version of pip to make it work for now.


now working for me with binutils recommended here: kennethreitz/requests#1547


Install the cygwin package libuuid-devel, that will fix it.


same problem here.
cygwin64 - cygwin1.dll 1.7.29
python 2.7.5-3
windows 7 64 bit
installing libuuid-devel into cygwin did not solve the bug unfortunatelly.

-------> But switching from cygwin-64bit to cygwin-32bit solved it! (but forking problems may occur in cygwin-32bit: "error: cannot fork() : Resource temporarily unavailable")


For future Unixers in Windows territory:
I'm using cygwin64 on windows 8, 64 bit and I had to install both "binutils" and "libuuid-devel" to make pip work.


yes, when installing anything related to "binutils" and "libuuid-devel" in CygWin 64, it works! Great!


Can also confirm that installing binutils and libuuid-devel in Cygwin64 fixed the problem.


@Indiv0 Confirm it one more :-)


Has someone reported these dependencies to cygwin python maintainer?


Confirming that installing both binutils and libuuid-devel (as mentioned by @Indiv0) worked for me as well. Cygwin64 version 1.7.30.


Additional confirmation that installing libuuid-devel on cygwin64 1.7.30/win8.1 solved this issue for me.


Still happening in Cygwin64 1.7.31(0.272/5/3), Python 2.7.8, setuptools 5.4.2, pip 1.5.6 and still solved by installing "binutils" and "libuuid-devel"


@hellerbarde you can speak to us here just fine :)


@Ivoz , sorry, i somehow didn't realize that package maintainers are around here as well.

Edit: oh, wait. Are you also a Cygwin package maintainer? Because that would be what I was looking for. I totally forgot that this thread is not in the Cygwin project, so I neglected to mention it.


Are you also a Cygwin package maintainer?

Nope, that's why I asked if someone had reported it to them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.