Skip to content
Advertisement

Python.h missing from Ubuntu 12.04

I installed an openflow controller on my Ubuntu 12.04 called RYU using:

JavaScript

I was trying to run a python file using ryu-manager as shown below.

JavaScript

Then I tried to install gevent using:

JavaScript

What is the cause of this error? I tried to locate Python.h using sudo locate Python.h, but without success. The output of python -V however is

JavaScript

Should Python.h be there on the system? If so, what should I install to get it?

Advertisement

Answer

This should do it:

sudo apt-get update; sudo apt-get install python-dev -y

It will install any missing headers. It helped me a lot.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement