title: How to install the library netifaces for Python3 in Ubuntu 12.04?
body: <p>I made a program in Python3 which uses the package <strong>netifaces</strong>, I installed it with pip3 in two computers which had Ubuntu 13.04 and Ubuntu 13.10. However, I need to install it in other computer which has Ubuntu 12.04, and here I cannot install pip3 (python3-pip) because it is not on the repositories.</p>
  
  <p>What I did was the next steps:</p>
  
  <pre><code>sudo aptitude install python3-setuptools
  sudo easy_install3 pip
  </code></pre>
  
  <p>And then I had pip3 available. The problem is when I tried to install <strong>netifaces</strong> with pip3, which gives me next error:</p>
  
  <pre><code>error: command 'gcc' failed with exit status 1
  Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/netifaces/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-gkaftl-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/netifaces
  Storing debug log for failure in /home/anubia/.pip/pip.log
  </code></pre>
  
  <p>If I install <strong>netifaces</strong> with pip or aptitude or apt-get the program does not recognise the library, because its documents are installed in python2 folders. I even tried to do a symbolic link from python3 folders to them, but it did not work.</p>
  
  <p>Any ideas, please?</p>