Problems installing python module pybfd
<p>I've been trying to install the <code>pybfd</code> module but nothing works so far.</p>

<p>Tried the following:</p>

<p><code>pip install pybfd</code> returns <code>error: option --single-version-externally-managed not recognized</code>. After a quick search I found the <code>--egg</code> option for <code>pip</code> which seems to work, says successfully installed but when I try to run my code <code>ImportError: No module named pybfd.bfd</code></p>

<p><code>easy_install pybfd</code> returns an error as well: 
<code>Writing /tmp/easy_install-oZUgBf/pybfd-0.1.1/setup.cfg
Running pybfd-0.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-oZUgBf/pybfd-0.1.1/egg-dist-tmp-gWwhoT
[-] Error : unable to determine correct include path for bfd.h / dis-asm.h
No eggs found in /tmp/easy_install-oZUgBf/pybfd-0.1.1/egg-dist-tmp-gWwhoT (setup script problem?)</code></p>

<p>For the last attempt I downloaded the <code>pybfd</code> repo from GitHub and ran the setup script: <code>[-] Error : unable to determine correct include path for bfd.h / dis-asm.h
</code></p>

<p>Does anyone have any idea what could be causing all this and how to actually install the module ? </p>

<p>After some trial and error I discovered that <code>binutils-dev</code> and <code>python-dev</code> packages were missing and causing the header path errors. After installing those the setup script worked.</p>

python pip easy-install