I installed an openflow controller on my Ubuntu 12.04 called RYU using:
sudo pip install ryu
I was trying to run a python file using ryu-ma
Even if you have Python installed, the header file and the library usually aren't installed by default. On Ubuntu, they come in a separate package called python-dev.