Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip install bitarray

Tags:

python

pip

Running pip install bitarray results in a fatal error for me:

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

I'm running an Ubuntu 12.04 upgrade. Perhaps I missed installing some dependencies?

Running Python works:

Python 2.7.3 (default, Aug  1 2012, 05:16:07) 
[GCC 4.6.3] on linux2
like image 838
jlim Avatar asked Aug 11 '12 20:08

jlim


People also ask

What is Bitarray in C#?

The BitArray class manages a compact array of bit values, which are represented as Booleans, where true indicates that the bit is on i.e, 1 and false indicates the bit is off i.e, 0. This class is contained in System.


1 Answers

At the very least, you will need the python-dev package

sudo apt-get install python-dev
like image 79
Mark Hildreth Avatar answered Sep 30 '22 19:09

Mark Hildreth