Pip install bitarray

Running pip install bitarrayleads to a fatal error for me:

bitarray/_bitarray.c:9:20: fatal error: Python.h: No such file or directory

I am running an update to Ubuntu 12.04 . Perhaps I skipped installing some dependencies?

Python work works:

Python 2.7.3 (default, Aug  1 2012, 05:16:07) 
[GCC 4.6.3] on linux2
+5
source share
1 answer

At least you'll need the python-dev package

sudo apt-get install python-dev
+16
source

All Articles