SyntaxFix
Write A Post
Hire A Developer
Questions
Despite being an old question, I'll add my opinion.
I think the right answer depends on the error message of the gcc compiler, something like "Missing xxxx.h"
This might help in some cases:
sudo apt-get install build-essential python-dev