Ansible installation using cygwin - error [Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lJqIyR/cffi/]
<p>I was trying to install Ansible in Cygwin, but I am getting the following error.</p>

<p>I have even reinstalled pythonsetup tools yet still I am getting this error:</p>

<pre><code>$ pip install ansible
Requirement already satisfied (use --upgrade to upgrade): ansible in /usr/lib/python2.7/site-packages/ansible-2.1.1.0-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): paramiko in /usr/lib/python2.7/site-packages/paramiko-2.0.2-py2.7.egg (from ansible)
Requirement already satisfied (use --upgrade to upgrade): jinja2 in /usr/lib/python2.7/site-packages/Jinja2-2.8-py2.7.egg (from ansible)
Requirement already satisfied (use --upgrade to upgrade): PyYAML in /usr/lib/python2.7/site-packages/PyYAML-3.12-py2.7-cygwin-2.6.0-x86_64.egg (from ansible)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/site-packages (from ansible)
Requirement already satisfied (use --upgrade to upgrade): pycrypto&gt;=2.6 in /usr/lib/python2.7/site-packages (from ansible)
Collecting cryptography&gt;=1.1 (from paramiko-&gt;ansible)
  Using cached cryptography-1.5.tar.gz
Requirement already satisfied (use --upgrade to upgrade): pyasn1&gt;=0.1.7 in /usr/lib/python2.7/site-packages/pyasn1-0.1.9-py2.7.egg (from paramiko-&gt;ansible)
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in /usr/lib/python2.7/site-packages/MarkupSafe-0.23-py2.7.egg (from jinja2-&gt;ansible)
Collecting idna&gt;=2.0 (from cryptography&gt;=1.1-&gt;paramiko-&gt;ansible)
  Using cached idna-2.1-py2.py3-none-any.whl
Collecting six&gt;=1.4.1 (from cryptography&gt;=1.1-&gt;paramiko-&gt;ansible)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting enum34 (from cryptography&gt;=1.1-&gt;paramiko-&gt;ansible)
  Using cached enum34-1.1.6-py2-none-any.whl
Collecting ipaddress (from cryptography&gt;=1.1-&gt;paramiko-&gt;ansible)
  Using cached ipaddress-1.0.17-py2-none-any.whl
Collecting cffi&gt;=1.4.1 (from cryptography&gt;=1.1-&gt;paramiko-&gt;ansible)
  Using cached cffi-1.8.2.tar.gz
    Complete output from command python setup.py egg_info:
    unable to execute 'gcc': No such file or directory
    unable to execute 'gcc': No such file or directory

        No working compiler found, or bogus compiler options
        passed to the compiler from Python's distutils module.
        See the error messages above.
        (If they are about -mno-fused-madd and you are on OS/X 10.8,
        see http://stackoverflow.com/questions/22313407/ .)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lJqIyR/cffi/
</code></pre>

<p>Run Cygwin Setup and check <code>Devel</code> branch for installation. </p>

<hr>

<p>It should be obvious from the error message that you need to install a compiler. In cases like this run Cygwin Setup and type the missing component name (<code>gcc</code>) to locate the package. In case of <code>gcc</code> requirement for pip/Ansible the whole <code>Devel</code> might not be necessary, but it shouldn't be a problem.</p>

python cygwin ansible