If there are multiple pythons installed, but only one python-dev, it's possible it will fail to compile. This in particular happens if you have python3, but only dev for python2.7